code: def _reduce_method(m):
      if m.__self__ is None:
          return getattr, (m.__class__, m.__func__.__name__)
      else:
          return getattr, (m.__self__, m.__func__.__name__)
  
file_path: catboost/contrib/python/joblib/joblib/externals/loky/backend/reduction.py
imports: import copyreg
  import io
  import functools
  import types
  import sys
  import os
  from multiprocessing import util
  from pickle import loads, HIGHEST_PROTOCOL
label_desc: Use image node_id 2 for calling a global function with example usage: _reduce_method(m) and returns: getattr,  m,  m, getattr,  m,  m