code: def _build_tensor_row(row: PandasRow) -> np.ndarray:
      from ray.data.extensions import TensorArrayElement
  
      tensor = row[TENSOR_COLUMN_NAME].iloc[0]
      if isinstance(tensor, TensorArrayElement):
          # Getting an item in a Pandas tensor column may return a TensorArrayElement,
          # which we have to convert to an ndarray.
          tensor = tensor.to_numpy()
      return tensor
  
imports: import collections
  import heapq
  from typing import TYPE_CHECKING, Any, Callable, Dict, Iterator, List, Optional, Tuple, TypeVar, Union
  import numpy
  from ray.air.constants import TENSOR_COLUMN_NAME
  from ray.data._internal.table_block import TableBlockAccessor, TableBlockBuilder
  from ray.data._internal.util import find_partitions
  from ray.data.block import Block, BlockAccessor, BlockExecStats, BlockMetadata, KeyType, U
  from ray.data.context import DataContext
  from ray.data.row import TableRow
label_desc: Use image node_id 4 for calling the PandasBlockAccessor obj's underlying member method code with example usage: obj._build_tensor_row(row) and returns: tensor