class_docstr: Generic module class that serves as base class for all PyText modules.
  
  Args:
      config (type): Module's `config` object. Specific contents of this object
          depends on the module. Defaults to None.
code: def freeze(self) -> None:
      for param in self.parameters():
          param.requires_grad = False
  
file_path: pytext/pytext/models/module.py
imports: from typing import Dict
  import torch
  import torch.jit
  import torch.nn
  from pytext.config.component import Component, ComponentType, create_component
  from pytext.config.module_config import ModuleConfig
  from pytext.utils.file_io import PathManager
label_desc: Use image node_id 2 for calling the Module obj's underlying member method code with example usage: obj.freeze() without return types