code: def patch(old_factory):
      def record_factory(*args, **kwargs):
          record = old_factory(*args, **kwargs)
  
          for key, value in get_mdc_fields().items():
              setattr(record, key, value)
  
          return record
  
      return record_factory
  
file_path: upgini/src/upgini/mdc/__init__.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import logging
  from upgini.mdc.context import new_log_context, get_mdc_fields
  from pythonjsonlogger import jsonlogger
label_desc: Use image node_id 1 for calling a global function with example usage: patch(old_factory) and returns: record_factory, record