code: def get_dataset_confs(path):
      "Get the list of confs for a dataset."
      module_path = datasets.load.dataset_module_factory(
          path
      ).module_path
      # Get dataset builder class from the processing script
      builder_cls = datasets.load.import_main_class(
          module_path, dataset=True
      )
      # Instantiate the dataset builder
      confs = builder_cls.BUILDER_CONFIGS
      if confs and len(confs) > 1:
          return confs
      return []
  
file_path: promptsource/promptsource/utils.py
imports: import os
  import datasets
  import requests
  from promptsource import DEFAULT_PROMPTSOURCE_CACHE_HOME
  from promptsource.templates import INCLUDED_USERS
label_desc: Use image node_id 5 for calling a global function with example usage: get_dataset_confs(path) and returns: list, confs