code: def get_callback(d):
      def callback_func(key=None, val=None, data=None):
          print("CONFIG", key, val, data)
          if data:
              d.update(data)
          if key:
              d[key] = val
  
      return callback_func
  
file_path: wandb/tests/pytest_tests/unit_tests/test_wandb_config.py
imports: import pytest
  import yaml
  from wandb import wandb_sdk
label_desc: Use image node_id 1 for calling a global function with example usage: get_callback(d) and returns: callback_func