code: def print_deprecation_warning(instance):
      name = instance.__class__.__name__
      print(
          f"WARNING: {name} will be deprecated in MatchZoo v2.2. "
          "Use `DataGenerator` with callbacks instead."
      )
  
imports: import numpy
  import matchzoo
label_desc: Use image node_id 1 for calling a global function with example usage: print_deprecation_warning(instance) without return types