code: def resolve_paths_from_task(
      flow_datastore,
      pathspec=None,
      type=None,
      hash=None,
      card_id=None,
  ):
      card_datastore = CardDatastore(flow_datastore, pathspec=pathspec)
      card_paths_found = card_datastore.extract_card_paths(
          card_type=type, card_hash=hash, card_id=card_id
      )
      return card_paths_found, card_datastore
  
imports: from .card_datastore import CardDatastore
label_desc: Use image node_id 3 for calling a global function with example usage: resolve_paths_from_task(flow_datastore, pathspec, type, hash, card_id) and returns: card_paths_found,  card_datastore