code: def draw(filestems, gformat):
      
      # Draw heatmaps
      for filestem in filestems:
          fullstem = os.path.join(args.outdirname, filestem)
          outfilename = fullstem + ".%s" % gformat
          infilename = fullstem + ".tab"
          df = pd.read_csv(infilename, index_col=0, sep="\t")
          logger.info("Writing heatmap to %s", outfilename)
          params = pyani_graphics.Params(
              params_mpl(df)[filestem],
              pyani_tools.get_labels(args.labels),
              pyani_tools.get_labels(args.classes),
          )
          if args.gmethod == "mpl":
              pyani_graphics.heatmap_mpl(
                  df, outfilename=outfilename, title=filestem, params=params
              )
          elif args.gmethod == "seaborn":
              pyani_graphics.heatmap_seaborn(
                  df, outfilename=outfilename, title=filestem, params=params
              )
docs: Draw ANIb/ANIm/TETRA results
  
      - filestems - filestems for output files
      - gformat - the format for output graphics