code: def codec_for(path):
      for ext in reversed(path.split(".")):
          try:
              return find_codec(ext)
          except Exception as e:
              logger.debug("in codec_for(): %s", e)
  
      raise Exception("unsupported file %s" % path)
  
file_path: catboost/library/python/compress/__init__.py
imports: from io import open
  import struct
  import json
  import os
  import logging
  import library.python.par_apply
  import library.python.codecs
label_desc: Use image node_id 3 for calling a global function with example usage: codec_for(path) and returns: find_codec