code: def test_no_pandas_future_warning():
      """Tests that Pandas in-place FutureWarning is
      suppressed during tensor extension casting."""
  
      input_tensor = np.arange(12).reshape((3, 2, 2))
      input_data = pd.DataFrame({"x": TensorArray(input_tensor)})
  
      with warnings.catch_warnings():
          warnings.simplefilter("error", category=FutureWarning)
          data_no_tensor_array = _cast_tensor_columns_to_ndarrays(
              input_data
          )
          _cast_ndarray_columns_to_tensor_extension(
              data_no_tensor_array
          )
  
imports: import pytest
  import warnings
  import pandas
  import numpy
  import pyarrow
  from ray.air._internal.torch_utils import convert_ndarray_to_torch_tensor
  from ray.air.constants import TENSOR_COLUMN_NAME
  from ray.air.util.data_batch_conversion import _convert_batch_type_to_pandas, _convert_pandas_to_batch_type, _convert_batch_type_to_numpy, _cast_ndarray_columns_to_tensor_extension, _cast_tensor_columns_to_ndarrays
  from ray.air.util.data_batch_conversion import BatchFormat
  from ray.air.util.tensor_extensions.pandas import TensorArray
  from ray.air.util.tensor_extensions.arrow import ArrowTensorArray
label_desc: Use image node_id 6 for calling a global function with example usage: test_no_pandas_future_warning() without return types