docstr: Removes the x and y attributes which were added by the forward handles
  Recursively searches for non-container layers
docstr_tok: ["Removes","the","x","and","y","attributes","which","were","added","by","the","forward","handles","Recursively","searches","for","non-container","layers"]
code: def remove_attributes(self, model):
      """
      Removes the x and y attributes which were added by the forward handles
      Recursively searches for non-container layers
      """
      for child in model.children():
          if "nn.modules.container" in str(type(child)):
              self.remove_attributes(child)
          else:
              try:
                  del child.x
              except AttributeError:
                  pass
              try:
                  del child.y
              except AttributeError:
                  pass
  
file_path: shap/shap/explainers/_deep/deep_pytorch.py
imports: import warnings
  import numpy
  from packaging import version
  from .._explainer import Explainer
  from .deep_utils import _check_additivity
label_desc: Use image node_id 4 for calling the PyTorchDeep obj's underlying member method code with example usage: obj.remove_attributes(model) without return types