code: def _make_callback(f):
      def _callback(_, __, value):
          return f(value)
  
      return _callback
  
file_path: pykeen/src/pykeen/models/cli/options.py
imports: import click
  from ..None import model_resolver
  from ...constants import AGGREGATIONS
  from ...evaluation import evaluator_resolver
  from ...losses import loss_resolver
  from ...nn import tokenizer_resolver
  from ...optimizers import optimizer_resolver
  from ...stoppers import stopper_resolver
  from ...training import training_loop_resolver
  from ...utils import random_non_negative_int, resolve_device
label_desc: Use image node_id 1 for calling a global function with example usage: _make_callback(f) and returns: _callback, f