code: def bind_to(target):
      def decorator(func):
          if isinstance(func, LambdaCallback):
              callback = func
          else:
              callback = LambdaCallback(func)
          setattr(
              callback,
              target.__name__,
              types.MethodType(
                  lambda self, state: self.on_lambda(state), callback
              ),
          )
          return callback
  
      return decorator
  
imports: import sys
  import types
  import torchbearer
  from torchbearer.callbacks import Callback
label_desc: Use image node_id 1 for calling a global function with example usage: bind_to(target) and returns: decorator, callback