docstr: Predict whether a batch of data has drifted from the reference data.
  
  Parameters
  ----------
  x
      Batch of instances.
  return_p_val
      Whether to return the p-value of the permutation test.
  return_distance
      Whether to return the MMD metric between the new batch and reference data.
  return_kernel
      Whether to return the updated kernel trained to discriminate reference and test instances.
  
  Returns
  -------
  Dictionary containing ``'meta'`` and ``'data'`` dictionaries.
      - ``'meta'`` has the detector's metadata.
      - ``'data'`` contains the drift prediction and optionally the p-value, threshold, MMD metric and             trained kernel.
code: def predict(
      self,
      x: Union[np.ndarray, list],
      return_p_val: bool = True,
      return_distance: bool = True,
      return_kernel: bool = True,
  ) -> Dict[Dict[str, str], Dict[str, Union[int, float, Callable]]]:
      """
          Predict whether a batch of data has drifted from the reference data.
  
          Parameters
          ----------
          x
              Batch of instances.
          return_p_val
              Whether to return the p-value of the permutation test.
          return_distance
              Whether to return the MMD metric between the new batch and reference data.
          return_kernel
              Whether to return the updated kernel trained to discriminate reference and test instances.
  
          Returns
          -------
          Dictionary containing ``'meta'`` and ``'data'`` dictionaries.
              - ``'meta'`` has the detector's metadata.
              - ``'data'`` contains the drift prediction and optionally the p-value, threshold, MMD metric and \
              trained kernel.
          """
      return self._detector.predict(
          x, return_p_val, return_distance, return_kernel
      )
  
file_path: alibi-detect/alibi_detect/cd/learned_kernel.py
imports: import numpy
  from typing import Callable, Dict, Optional, Union
  from alibi_detect.utils.frameworks import has_pytorch, has_tensorflow, has_keops, BackendValidator, Framework
  from alibi_detect.utils.warnings import deprecated_alias
  from alibi_detect.base import DriftConfigMixin
  from alibi_detect.utils._types import TorchDeviceType
label_desc: Use image node_id 2 for calling the LearnedKernelDrift obj's underlying member method code with example usage: obj.predict(x, return_p_val, return_distance, return_kernel) and returns: self