code: def from_config(cls, config: Dict[str, Any]) -> "LARS":
      # Default params
      config.setdefault("lr", 0.1)
      config.setdefault("momentum", 0.9)
      config.setdefault("weight_decay", 0.0)
      config.setdefault("eta", 0.001)
      config.setdefault("exclude_bias_and_norm", False)
  
      assert (
          config["momentum"] >= 0.0
          and config["momentum"] < 1.0
          and type(config["momentum"]) == float
      ), "Config must contain a 'momentum' in [0, 1) for SGD optimizer"
  
      return cls(
          lr=config["lr"],
          momentum=config["momentum"],
          weight_decay=config["weight_decay"],
          eta=config["eta"],
          exclude_bias_and_norm=config["exclude_bias_and_norm"],
      )
  
file_path: vissl/vissl/optimizers/lars.py
imports: from typing import Any, Dict
  import torch
  from classy_vision.optim import ClassyOptimizer, register_optimizer
  from torch import optim
label_desc: Use image node_id 3 for calling the LARS obj's underlying member method code with example usage: obj.from_config(cls, config) and returns: cls