code: def test_select_samples_by_category_with_default_arguments():
      (
          labels,
          num_samples_per_class,
          _,
          _,
          num_total_samples,
      ) = _test_data()
  
      random_seed = 0
      selected_sample_indices = common.select_samples_by_category(
          sample_category_labels=labels, random_seed=random_seed
      )
      assert len(selected_sample_indices) == num_total_samples
  
      for label, num_samples in num_samples_per_class.items():
          num_selected_samples_in_class = len(
              [
                  ind
                  for ind in selected_sample_indices
                  if labels[ind] == label
              ]
          )
          assert num_selected_samples_in_class == num_samples
  
file_path: ml-cvnets/tests/data/datasets/utils/test_common.py
imports: import numpy
  import pytest
  from data.datasets.utils import common
label_desc: Use image node_id 4 for calling a global function with example usage: test_select_samples_by_category_with_default_arguments() without return types