code: def _visitorsFor(celf, thing, _default={}):
      typ = type(thing)
  
      for celf in celf.mro():
          _visitors = getattr(celf, "_visitors", None)
          if _visitors is None:
              break
  
          m = celf._visitors.get(typ, None)
          if m is not None:
              return m
  
      return _default
  
file_path: catboost/contrib/python/fonttools/fontTools/misc/visitor.py
imports: import enum
label_desc: Use image node_id 5 for calling the Visitor obj's underlying member method code with example usage: obj._visitorsFor(celf, thing, _default) and returns: _default, m