code: def _get_format(file, default="tsv"):
      if isinstance(file, str):
          filename = file
      else:
          filename = getattr(file, "name", "")
      _, ext = os.path.splitext(filename)
      return ext[1:] if ext else default
  
file_path: cpython/Tools/c-analyzer/c_parser/datafiles.py
imports: import os.path
  from c_common import fsutil
  import c_common.tables
  import c_parser.info
label_desc: Use image node_id 6 for calling a global function with example usage: _get_format(file, default) and returns: unknown