code: def test_sweep_iterators(
      value: str,
      expected_sweep_string_list: List[str],
      expected_sweep_encoded_list: List[Any],
  ) -> None:
      ret = parser.parse_override(value)
      actual_sweep_string_list = [
          x for x in ret.sweep_string_iterator()
      ]
      actual_sweep_encoded_list = [
          x for x in ret.sweep_iterator(transformer=Transformer.encode)
      ]
      assert actual_sweep_string_list == expected_sweep_string_list
      assert actual_sweep_encoded_list == expected_sweep_encoded_list
  
imports: import builtins
  import math
  import re
  from dataclasses import dataclass
  from typing import Any, Callable, Dict, List, Union
  from _pytest.python_api import RaisesContext
  from pytest import mark, param, raises, warns
  from hydra import version
  from hydra._internal.grammar.functions import Functions
  from hydra._internal.grammar.utils import escape_special_characters
  from hydra.core.override_parser.overrides_parser import OverridesParser, create_functions
  from hydra.core.override_parser.types import ChoiceSweep, FloatRange, Glob, IntervalSweep, Key, Override, OverrideType, Quote, QuotedString, RangeSweep, Sweep, Transformer, ValueType
  from hydra.errors import HydraException
label_desc: Use image node_id 36 for calling a global function with example usage: test_sweep_iterators(value, expected_sweep_string_list, expected_sweep_encoded_list) without return types