class_docstr: Implements methods for applying unconditional and conditional regularization.
docstr: Compute MMD penalty between x and y.
docstr_tok: ["Compute","MMD","penalty","between","x","and","y","."]
code: def mmd(self, x, y):
      """
      Compute MMD penalty between x and y.
  
      """
      return mmd_compute(x, y, self.kernel_type, self.gamma)
  
file_path: dowhy/dowhy/causal_prediction/algorithms/regularization.py
imports: import numpy
  import torch
  from torch import nn
  from torch.nn import functional
  from dowhy.causal_prediction.algorithms.utils import mmd_compute
label_desc: Use image node_id 2 for calling the Regularizer obj's underlying member method code with example usage: obj.mmd(x, y) and returns: mmd_compute