code: def from_model(cls, model) -> "CoordinatedLRModuleHost":
      lr = CoordinatedLRModuleHost(
          epochs=model["meta"]["epochs"],
          batch_size=model["meta"]["batch_size"],
          learning_rate_param=model["meta"]["learning_rate_param"],
          optimizer_param=model["meta"]["optimizer_param"],
          init_param=model["meta"]["init_param"],
          floating_point_precision=model["meta"][
              "floating_point_precision"
          ],
      )
      lr.label_count = model["meta"]["label_count"]
      lr.ovr = model["meta"]["ovr"]
  
      all_estimator = model["data"]["estimator"]
      lr.estimator = {}
  
      if lr.ovr:
          lr.estimator = {}
          for label, d in all_estimator.items():
              estimator = CoordinatedLREstimatorHost(
                  epochs=model["meta"]["epochs"],
                  batch_size=model["meta"]["batch_size"],
                  init_param=model["meta"]["init_param"],
                  floating_point_precision=model["meta"][
                      "floating_point_precision"
                  ],
              )
              estimator.restore(d)
              lr.estimator[int(label)] = estimator
      else:
          estimator = CoordinatedLREstimatorHost(
              epochs=model["meta"]["epochs"],
              batch_size=model["meta"]["batch_size"],
              init_param=model["meta"]["init_param"],
              floating_point_precision=model["meta"][
                  "floating_point_precision"
              ],
          )
          estimator.restore(all_estimator)
          lr.estimator = estimator
      logger.info(f"finish from model")
  
      return lr
  
imports: import logging
  import torch
  from fate.arch import Context
  from fate.arch.dataframe import DataLoader
  from fate.ml.abc.module import HeteroModule
  from fate.ml.utils._model_param import check_overflow, deserialize_param, initialize_param, serialize_param
  from fate.ml.utils._optimizer import LRScheduler, Optimizer
label_desc: Use image node_id 7 for calling the CoordinatedLRModuleHost obj's underlying member method code with example usage: obj.from_model(cls, model) and returns: lr