code: def tanh(X):
      """Compute the hyperbolic tan function inplace.
  
      Parameters
      ----------
      X : {array-like, sparse matrix}, shape (n_samples, n_features)
          The input data.
  
      Returns
      -------
      X_new : {array-like, sparse matrix}, shape (n_samples, n_features)
          The transformed data.
      """
      return np.tanh(X, out=X)
  
file_path: catboost/contrib/python/scikit-learn/py2/sklearn/neural_network/_base.py
imports: import numpy
  from ..utils.fixes import expit
label_desc: Use image node_id 3 for calling a global function with example usage: tanh(X) and returns: np