code: def _eager_dataset_iterator(
      ds: tf.data.Dataset,
  ) -> Iterator[NumpyElem]:
      for elem in ds:
          yield tree_utils.map_structure(_elem_to_numpy_eager, elem)
  
imports: from __future__ import annotations
  import collections.abc
  import functools
  import typing
  from typing import Any, Callable, Iterable, Iterator, Union
  from etils import enp
  from etils.etree import nest
  import numpy
  from tensorflow_datasets.core import logging
  from tensorflow_datasets.core import utils
  from tensorflow_datasets.core.utils import tree_utils
  from tensorflow_datasets.core.utils import type_utils
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
label_desc: Use image node_id 1 for calling a global function with example usage: _eager_dataset_iterator(ds) without return types