code: def test_get_valid_functions():
      optional_batch_size = 10
      optional_n_jobs = 2
      x, y = _get_valid_optional_params(
          optional_batch_size, optional_n_jobs
      )
      assert x == optional_batch_size and y == optional_n_jobs
      x, y = _get_valid_optional_params(None, None)
      assert x == 10000 and y == None
  
      optional_class_names = [1, 2]
      optional_exclude = [1]
      optional_top = 10
      x, y, z = _get_summary_optional_params(
          optional_class_names, optional_exclude, optional_top
      )
      assert (
          x == optional_class_names
          and y == optional_exclude
          and z == optional_top
      )
      x, y, z = _get_summary_optional_params(None, None, None)
      assert x == None and y == [] and z == 20
  
imports: import numpy
  import random
  import pytest
  from unittest import mock
  import matplotlib.pyplot
  from pathlib import Path
  from cleanlab.internal.multilabel_scorer import softmin
  from cleanlab.internal.segmentation_utils import _check_input, _get_valid_optional_params, _get_summary_optional_params
  from cleanlab.segmentation.filter import find_label_issues
  from cleanlab.segmentation.rank import get_label_quality_scores, issues_from_scores, _get_label_quality_per_image
  from cleanlab.segmentation.summary import display_issues, common_label_issues, filter_by_class, _generate_colormap
label_desc: Use image node_id 23 for calling a global function with example usage: test_get_valid_functions() without return types