code: def test_tf_e2e(ray_start_regular_shared):
      ds = ray.data.range(5)
      it = ds.iterator()
      model = build_model()
      model.fit(it.to_tf("id", "id"), epochs=3)
  
file_path: ray/python/ray/data/tests/test_iterator.py
imports: from typing import Dict
  from unittest.mock import MagicMock, patch
  import numpy
  import pytest
  import tensorflow
  import torch
  import ray
label_desc: Use image node_id 7 for calling a global function with example usage: test_tf_e2e(ray_start_regular_shared) without return types