docstr: Init method
  
  :param model: trained PyTorch Model.
  :param model_path: path to trained model.
  :param backend: "PYT" for PyTorch framework.
  :param func: function transformation required for ML model. If func is None, then func will be the identity function.
  :param kw_args: Dictionary of additional keyword arguments to pass to func. DiCE's data_interface is appended to the
                  dictionary of kw_args, by default.
docstr_tok: ["Init","method",":","param","model",":","trained","PyTorch","Model",".",":","param","model_path",":","path","to","trained","model",".",":","param","backend",":","``","PYT","''","for","PyTorch","framework",".",":","param","func",":","function","transformation","required","for","ML","model",".","If","func","is","None",",","then","func","will","be","the","identity","function",".",":","param","kw_args",":","Dictionary","of","additional","keyword","arguments","to","pass","to","func",".","DiCE","'s","data_interface","is","appended","to","the","dictionary","of","kw_args",",","by","default","."]
code: def __init__(
      self,
      model=None,
      model_path="",
      backend="PYT",
      func=None,
      kw_args=None,
  ):
      """Init method
  
      :param model: trained PyTorch Model.
      :param model_path: path to trained model.
      :param backend: "PYT" for PyTorch framework.
      :param func: function transformation required for ML model. If func is None, then func will be the identity function.
      :param kw_args: Dictionary of additional keyword arguments to pass to func. DiCE's data_interface is appended to the
                      dictionary of kw_args, by default.
      """
  
      super().__init__(model, model_path, backend, func, kw_args)
  
file_path: DiCE/dice_ml/model_interfaces/pytorch_model.py
imports: import numpy
  import torch
  from dice_ml.constants import ModelTypes
  from dice_ml.model_interfaces.base_model import BaseModel
label_desc: Use image node_id 1 to create a new PyTorchModel object from inherited base classes: BaseModel with example: obj = PyTorchModel(model, model_path, backend, func, kw_args)