code: def requires_grad_(self, requires_grad: bool = True):
      for p in self.parameters():
          p.requires_grad_(requires_grad)
      return self
  
imports: import ivy
  from collections import OrderedDict
  from typing import Any, Dict, Iterator, List, Optional, Set, Tuple
  from ivy.functional.frontends.torch.nn.parameter import Parameter
  from ivy.functional.frontends.torch.tensor import Tensor
label_desc: Use image node_id 20 for calling the Module obj's underlying member method code with example usage: obj.requires_grad_(requires_grad) and returns: self