docstr: Converts tensor framework specific tensor to a numpy array.
  
  Args:
      tensor: A framework specific tensor.
  
  Returns:
      A numpy array representing the input tensor.
docstr_tok: ["Converts","tensor","framework","specific","tensor","to","a","numpy","array",".","Args",":","tensor",":","A","framework","specific","tensor",".","Returns",":","A","numpy","array","representing","the","input","tensor","."]
code: def _tensor_to_array(self, tensor: TensorType) -> np.ndarray:
      """Converts tensor framework specific tensor to a numpy array.
  
      Args:
          tensor: A framework specific tensor.
  
      Returns:
          A numpy array representing the input tensor.
      """
  
      raise NotImplementedError
  
file_path: ray/python/ray/train/_internal/dl_predictor.py
imports: import abc
  from typing import Dict, Optional, TypeVar, Union
  import numpy
  import pandas
  from ray.air.util.data_batch_conversion import BatchFormat, _convert_batch_type_to_pandas, _convert_pandas_to_batch_type
  from ray.train.predictor import Predictor
  from ray.util.annotations import DeveloperAPI
label_desc: Use image node_id 2 for calling the DLPredictor obj's underlying member method code with example usage: obj._tensor_to_array(tensor) without return types