code: def _source_resolved_to_target_dir(source_path, target_dir):
      """Returns true if a source is resolved to a target dir.
  
      A source is considered resolved a target dir when the target dir
      is the source parent.
      """
      return os.path.dirname(source_path) == target_dir
  
imports: import os
  import re
  import logging
  import typing
  from guild import cli
  from guild import resolver
  from guild import resourcedef
  from guild import util
label_desc: Use image node_id 31 for calling a global function with example usage: _source_resolved_to_target_dir(source_path, target_dir) and returns: unknown