code: def _keep_for_prune_overlapping(
      cf, source_lookup, nonsource_lookup, prefer_nonsource
  ):
      return not (
          cf.target_path in source_lookup
          and cf.target_path in nonsource_lookup
      ) or (
          cf.file_type != "s"
          if prefer_nonsource
          else cf.file_type == "s"
      )
  
imports: from collections import namedtuple
  import errno
  import fnmatch
  import logging
  import os
  import shutil
  from guild import file_util
  from guild import run_manifest
label_desc: Use image node_id 31 for calling a global function with example usage: _keep_for_prune_overlapping(cf, source_lookup, nonsource_lookup, prefer_nonsource) and returns: unknown