parameters: (func)
return_statement: return wrapper
docstring: 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)
docstring_summary: Wrap func so it's not called if its first param is None
docstring_tokens: Wrap func so it s not called if its first param is None
function: 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
function_tokens: def pass_none ( func ) : @ functools . wraps ( func ) def wrapper ( param , * args , * * kwargs ) : if param is not None : return func ( param , * args , * * kwargs ) return wrapper