code: def fetch_openneuro_dataset_index(
      data_dir=None,
      dataset_version="ds000030_R1.0.4",
      verbose=1,
  ):
      """Download a file with OpenNeuro :term:`BIDS` dataset index.
  
      .. deprecated:: 0.9.2
          `fetch_openneuro_dataset_index` will be removed in 0.11.
  
      Downloading the index allows to explore the dataset directories
      to select specific files to download. The index is a sorted list of urls.
  
      Parameters
      ----------
      %(data_dir)s
      dataset_version : :obj:`str`, default='ds000030_R1.0.4'
          Dataset version name. Assumes it is of the form [name]_[version].
  
          .. warning:: Any value other than the default will be ignored.
  
      %(verbose)s'
  
      Returns
      -------
      urls_path : :obj:`str`
          Path to downloaded dataset index.
      urls : :obj:`list` of :obj:`str`
          Sorted list of dataset directories.
      """
      warnings.warn(
          (
              'The "fetch_openneuro_dataset_index" function was deprecated in '
              "version 0.9.2, and will be removed in 0.11. "
              'Please use "fetch_ds000030_urls" instead.'
          ),
          DeprecationWarning,
      )
  
      DATASET_VERSION = "ds000030_R1.0.4"
      if dataset_version != DATASET_VERSION:
          warnings.warn(
              (
                  "An improper dataset_version has been provided. "
                  '"ds000030_R1.0.4" will be downloaded.'
              ),
              UserWarning,
          )
  
      urls_path, urls = fetch_ds000030_urls(
          data_dir=data_dir, verbose=verbose
      )
      return urls_path, urls
  
imports: import fnmatch
  import glob
  import json
  import numbers
  import os
  import re
  import warnings
  from io import BytesIO
  from pathlib import Path
  import nibabel
  import nibabel
  import numpy
  import pandas
  from scipy.io import loadmat
  from sklearn.utils import Bunch
  from nilearn.image import get_data
  from .._utils import check_niimg, fill_doc
  from .._utils.numpy_conversions import csv_to_array
  from ._utils import fetch_files, fetch_single_file, filter_columns, get_dataset_descr, get_dataset_dir, read_md5_sum_file, tree, uncompress_file
label_desc: Use image node_id 24 for calling a global function with example usage: fetch_openneuro_dataset_index(data_dir, dataset_version, verbose) and returns: urls_path,  urls