code: def _get_ext(file_type):
      """get extension corresponding to ('support', 'logfile', or archive type)
  
      file_type: one of ('logfile', 'support', or archive type)
      """
      import klepto.archives as kl
  
      if file_type == "support":
          ext = ".py"
      elif file_type == "logfile":
          ext = ".txt"
      elif file_type in ("file_archive", "dir_archive"):
          ext = ".db"
      elif file_type in (kl.file_archive, kl.dir_archive):
          ext = ".db"
      elif file_type in ("hdf_archive", "hdfdir_archive"):
          ext = ".h5"
      elif file_type in (kl.hdf_archive, kl.hdfdir_archive):
          ext = ".h5"
      elif file_type in ("sql_archive", "sqltable_archive"):
          ext = ".sql"
      elif file_type in (kl.sql_archive, kl.sqltable_archive):
          ext = ".sql"
      else:
          ext = ""  # XXX: only gets here if is a new archive type
      return ext
  
imports: from collections.abc import Callable
label_desc: Use image node_id 1 for calling a global function with example usage: _get_ext(file_type) and returns: ext