def _get_dispatch_method(self, pid, method):
    try:
      return getattr(self._processes[pid], method)
    except __HOLE__:
      raise self.InvalidProcess('Unknown process %s' % pid)
    except AttributeError:
      raise self.InvalidMethod('Unknown method %s on %s' % (method, pid))
dataset/ETHPy150Open wickman/compactor/compactor/context.py/Context._get_dispatch_method