code: def _init_target_path(target_path_arg, path_arg, context):
      """Returns target path for two args.
  
      The `path` source def attribute is renamed to `target-path` for
      clarity. Maintains backward compatibility for specifying target
      path as `path`.
  
      Logs a warning if both values are provided and returns the value
      of `target_path_arg`.
      """
      if target_path_arg and path_arg:
          log.warning(
              "target-path and path both specified for %s - using target-path",
              context,
          )
      return target_path_arg or path_arg
  
imports: import collections
  import copy
  import logging
  import operator
  import pprint
  from guild import util
label_desc: Use image node_id 12 for calling a global function with example usage: _init_target_path(target_path_arg, path_arg, context) and returns: unknown