code: def path_spec_resolver(pathspec):
      splits = pathspec.split("/")
      splits.extend([None] * (4 - len(splits)))
      return tuple(splits)
  
imports: from collections import namedtuple
  from io import BytesIO
  import os
  import json
  import shutil
  from metaflow.plugins.datastores.local_storage import LocalStorage
  from metaflow.metaflow_config import CARD_S3ROOT, CARD_LOCALROOT, DATASTORE_LOCAL_DIR, CARD_SUFFIX, CARD_AZUREROOT, CARD_GSROOT, SKIP_CARD_DUALWRITE
  import metaflow.metaflow_config
  from .exception import CardNotPresentException
label_desc: Use image node_id 1 for calling a global function with example usage: path_spec_resolver(pathspec) and returns: tuple