docstr: Converts a `numpy` array to a `tensorflow` tensor.
docstr_tok: ["Converts","a","`","numpy","`","array","to","a","`","tensorflow","`","tensor","."]
code: def to_tensor(X: np.ndarray) -> tf.Tensor:
      """Converts a `numpy` array to a `tensorflow` tensor."""
      return tf.convert_to_tensor(X)
  
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 3 for calling the _TensorFlowBackend obj's underlying member method code with example usage: obj.to_tensor(X) and returns: tf