docstr: Converts a tensor to `np.ndarray`.
docstr_tok: ["Converts","a","tensor","to","`","np.ndarray","`","."]
code: def to_numpy(X: tf.Tensor) -> np.ndarray:
      """Converts a tensor to `np.ndarray`."""
      return X.numpy()
  
file_path: alibi/alibi/explainers/similarity/backends/tensorflow/base.py
imports: from typing import Any, Callable, List, Optional, Union
  import numpy
  import tensorflow
  from tensorflow import keras
label_desc: Use image node_id 5 for calling the _TensorFlowBackend obj's underlying member method code with example usage: obj.to_numpy(X) and returns: X