code: def _get_dataset_info(dataset_dir, split):
      splits_file = os.path.join(dataset_dir, "splits.csv")
      splits_df = pd.read_csv(splits_file)
      split_img_glob = os.path.join(
          dataset_dir, split, "data", "*", "*", "*.jpg"
      )
      num_samples = len(etau.get_glob_matches(split_img_glob))
      return num_samples, sorted(splits_df["FID"].unique())
  
imports: import logging
  import os
  from collections import defaultdict
  import eta.core.utils
  import eta.core.web
  import pandas
  import fiftyone
  import fiftyone.core.utils
  import fiftyone.utils.data
  from fiftyone.core.expressions import ViewField
  from fiftyone.core.expressions import VALUE
label_desc: Use image node_id 20 for calling a global function with example usage: _get_dataset_info(dataset_dir, split) and returns: num_samples,  sorted