code: def save_graph(graph, to_file, format_):
      # Graphviz always appends the format to the file name, so we need to
      # remove it manually to avoid file names like 'file_name.pdf.pdf'
      offset = len(format_) + 1  # Add 1 for the dot
      output_path = to_file[:-offset]
      graph.render(output_path, cleanup=True)
  
imports: from featuretools.utils.gen_utils import import_or_raise
label_desc: Use image node_id 3 for calling a global function with example usage: save_graph(graph, to_file, format_) without return types