code: def get_available_subset_names(
      dataset_root: str,
      category: str,
      path_manager: Optional[PathManager] = None,
  ) -> List[str]:
      """
      Get the available subset names for a given category folder inside a root dataset
      folder `dataset_root`.
      """
      category_dir = os.path.join(dataset_root, category)
      category_dir_exists = (
          (path_manager is not None)
          and path_manager.isdir(category_dir)
      ) or os.path.isdir(category_dir)
      if not category_dir_exists:
          raise ValueError(
              f"Looking for dataset files in {category_dir}. "
              + "Please specify a correct dataset_root folder."
          )
  
      set_list_dir = os.path.join(category_dir, "set_lists")
      set_list_jsons = (
          os.listdir if path_manager is None else path_manager.ls
      )(set_list_dir)
  
      return [
          json_file.replace("set_lists_", "").replace(".json", "")
          for json_file in set_list_jsons
      ]
  
imports: import copy
  import json
  import logging
  import multiprocessing
  import os
  import warnings
  from collections import defaultdict
  from typing import Dict, List, Optional, Tuple, Type, Union
  import numpy
  from iopath.common.file_io import PathManager
  from omegaconf import DictConfig
  from pytorch3d.implicitron.dataset.dataset_map_provider import DatasetMap, DatasetMapProviderBase, PathManagerFactory
  from pytorch3d.implicitron.dataset.json_index_dataset import JsonIndexDataset
  from pytorch3d.implicitron.tools.config import expand_args_fields, registry, run_auto_creation
  from pytorch3d.renderer.cameras import CamerasBase
  from tqdm import tqdm
label_desc: Use image node_id 1 for calling a global function with example usage: get_available_subset_names(dataset_root, category, path_manager) and returns: unknown