code: def _get_op_handler(operation):
          
          try:
              mod_to_import, attr_path = operation.split('#')
              op = import_module(mod_to_import)
              for part in attr_path.split('.'):
                  op = getattr(op, part)
              if isinstance(op, types.FunctionType):
                  return op
              return six.get_method_function(op)
          except (ValueError, AttributeError):
              raise ValueError("The operation '{}' is invalid.".format(operation))
docs: Import and load the operation handler