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__)
  
imports: from abc import ABCMeta
  import copyreg
  import functools
  import io
  import os
  import pickle
  import socket
  import sys
  from .None import context
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