code: def _write_graph_to_graphmlz_file(graph, f, compresslevel=9):
      """Writes the graph to a zipped GraphML file.
  
      The library uses the gzip compression algorithm, so the resulting
      file can be unzipped with regular gzip uncompression (like
      C{gunzip} or C{zcat} from Unix command line) or the Python C{gzip}
      module.
  
      Uses a temporary file to store intermediate GraphML data, so
      make sure you have enough free space to store the unzipped
      GraphML file as well.
  
      @param f: the name of the file to be written.
      @param compresslevel: the level of compression. 1 is fastest and
        produces the least compression, and 9 is slowest and produces
        the most compression."""
      with named_temporary_file() as tmpfile:
          graph.write_graphml(tmpfile)
          outf = gzip.GzipFile(f, "wb", compresslevel)
          copyfileobj(open(tmpfile, "rb"), outf)
          outf.close()
  
file_path: python-igraph/src/igraph/io/files.py
imports: import gzip
  import os
  from shutil import copyfileobj
  from warnings import warn
  from igraph._igraph import GraphBase
  from igraph.utils import named_temporary_file
label_desc: Use image node_id 10 for calling a global function with example usage: _write_graph_to_graphmlz_file(graph, f, compresslevel) without return types