code: def test_tf_conversion(ray_start_regular_shared):
      ds = ray.data.range(5)
      it = ds.iterator()
      tf_dataset = it.to_tf("id", "id")
      for i, row in enumerate(tf_dataset):
          assert all(row[0] == i)
          assert all(row[1] == i)
          assert isinstance(row[0], tf.Tensor)
          assert isinstance(row[1], tf.Tensor)
  
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 6 for calling a global function with example usage: test_tf_conversion(ray_start_regular_shared) without return types