code: def resolved_source_args(resolved_source):
      """Returns manifest args for a resolved resource source (dependency).
  
      Args:
  
          ['d', run_relative_path, sha1_or_dash] + source_args
  
      If the resolved source is a file, its sha1 is included in the args
      at position 3, otherwise a dash ('-') is used.
  
      `source_args` in this is one of:
  
          - [source_uri]
          - [source_uri, subpath]
  
      Project local files are represented by
      `file:<project_relative_path>`. Other URIs are listed as they
      appear in the source configuration.
  
      When a source is an archive, the URI is followed by the
      archive-relative subpath to the resolved source.
      """
      dest_arg = _relpath(
          resolved_source.target_path, resolved_source.target_root
      )
      hash_arg = _resolved_source_hash_manifest_arg(
          resolved_source.target_path
      )
      src_args = _resolved_source_src_manifest_args(resolved_source)
      return ["d", dest_arg, hash_arg] + src_args
  
imports: import os
  import re
  from guild import manifest
  from guild import util
  from guild import var
label_desc: Use image node_id 4 for calling a global function with example usage: resolved_source_args(resolved_source) and returns: unknown