code: def test_large_tensor_creation(ray_start_regular_shared):
      """Tests that large tensor read task creation can complete successfully without
      hanging."""
      start_time = time.time()
      ray.data.range_tensor(
          1000, parallelism=1000, shape=(80, 80, 100, 100)
      )
      end_time = time.time()
  
      # Should not take more than 20 seconds.
      assert end_time - start_time < 20
  
imports: import time
  import numpy
  import pandas
  import pyarrow
  import pytest
  import ray
  from ray.air.util.tensor_extensions.utils import _create_possibly_ragged_ndarray
  from ray.data.block import BlockAccessor
  from ray.data.extensions.tensor_extension import ArrowTensorArray, ArrowTensorType, ArrowVariableShapedTensorArray, ArrowVariableShapedTensorType, TensorArray, TensorDtype
  from ray.data.tests.conftest import *
  from ray.data.tests.util import extract_values
  from ray.tests.conftest import *
label_desc: Use image node_id 1 for calling a global function with example usage: test_large_tensor_creation(ray_start_regular_shared) without return types