code: def k_tanh(x, y, off, scale):
      """Tanh kernel with scale and offset."""
      return np.tanh(off + scale * np.inner(x, y))
  
imports: import collections
  from functools import partial
  import numpy
  from scipy.sparse.linalg import svds
  from sklearn.base import BaseEstimator, TransformerMixin
  from sktime.dists_kernels.base import BasePairwiseTransformerPanel
label_desc: Use image node_id 15 for calling a global function with example usage: k_tanh(x, y, off, scale) and returns: np