code: def pass_none(func):
      """
      Wrap func so it's not called if its first param is None
  
      >>> print_text = pass_none(print)
      >>> print_text('text')
      text
      >>> print_text(None)
      """
  
      @functools.wraps(func)
      def wrapper(param, *args, **kwargs):
          if param is not None:
              return func(param, *args, **kwargs)
  
      return wrapper
  
imports: import types
  import functools
label_desc: Use image node_id 2 for calling a global function with example usage: pass_none(func) and returns: wrapper, func