code: def is_cached_folder_exists_and_valid(cached):
      possible_extracted_model_folder = _get_untar_directory(cached)
      if not os.path.exists(possible_extracted_model_folder):
          return False
      for tar_file in _TAR_FILE_NAME_LIST:
          if not os.path.exists(
              os.path.join(possible_extracted_model_folder, tar_file)
          ):
              return False
      return True
  
imports: import os
  import logging
  from typing import Any, Optional
  from urllib.parse import urlparse
  import tarfile
  import uuid
  from iopath.common.file_io import PathHandler
  from iopath.common.file_io import HTTPURLHandler
  from iopath.common.file_io import get_cache_dir, file_lock
  from iopath.common.download import download
  from ..base_catalog import PathManager
label_desc: Use image node_id 3 for calling a global function with example usage: is_cached_folder_exists_and_valid(cached) and returns: True, False, False