code: def deprecated_argument_lookup(
      new_name, new_value, old_name, old_value
  ):
      if old_value is not None:
          if new_value is not None:
              raise ValueError(
                  "Cannot specify both '%s' and '%s'"
                  % (old_name, new_name)
              )
          return old_value
      return new_value
  
imports: import contextlib
label_desc: Use image node_id 6 for calling a global function with example usage: deprecated_argument_lookup(new_name, new_value, old_name, old_value) and returns: new_value, old_value