code: def _list_card_paths(
      self, card_type=None, card_hash=None, card_id=None
  ):
      # Check for new cards first
      card_paths = []
      card_paths_with_steps = self._backend.list_content(
          [self._get_card_read_path(with_steps=True)]
      )
  
      if len(card_paths_with_steps) == 0:
          card_paths_without_steps = self._backend.list_content(
              [self._get_card_read_path(with_steps=False)]
          )
          if len(card_paths_without_steps) == 0:
              # If there are no files found on the Path then raise an error of
              raise CardNotPresentException(
                  self._pathspec,
                  card_hash=card_hash,
                  card_type=card_type,
              )
          else:
              card_paths = card_paths_without_steps
      else:
          card_paths = card_paths_with_steps
  
      cards_found = []
      for task_card_path in card_paths:
          card_path = task_card_path.path
          card_info = self.info_from_path(
              card_path, suffix=CardNameSuffix.CARD
          )
          if card_type is not None and card_info.type != card_type:
              continue
          elif card_hash is not None:
              if not card_info.hash.startswith(card_hash):
                  continue
          elif card_id is not None and card_info.id != card_id:
              continue
  
          if task_card_path.is_file:
              cards_found.append(card_path)
  
      return cards_found
  
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 12 for calling the CardDatastore obj's underlying member method code with example usage: obj._list_card_paths(card_type, card_hash, card_id) and returns: cards_found