code: def test_arrow_scalar_tensor_array_roundtrip():
      arr = np.arange(10)
      ata = ArrowTensorArray.from_numpy(arr)
      assert isinstance(ata.type, pa.DataType)
      assert len(ata) == len(arr)
      out = ata.to_numpy()
      np.testing.assert_array_equal(out, arr)
  
imports: import itertools
  import numpy
  import pandas
  from packaging.version import parse
  import pyarrow
  import pytest
  from ray.air.util.tensor_extensions.arrow import ArrowTensorArray, ArrowTensorType, ArrowVariableShapedTensorArray, ArrowVariableShapedTensorType
  from ray.air.util.tensor_extensions.pandas import TensorArray, TensorDtype
  from ray.air.util.tensor_extensions.utils import create_ragged_ndarray
  from ray._private.utils import _get_pyarrow_version
label_desc: Use image node_id 3 for calling a global function with example usage: test_arrow_scalar_tensor_array_roundtrip() without return types