code: def from_config(
      cls, config, meta: CommonMetadata = None, tensorizers=None
  ):
      return cls(
          [ConsoleChannel()],
          meta,
          tensorizers,
          config.aggregate_metrics,
          config.perplexity_type,
          config.pep_format,
      )
  
imports: import json
  import math
  import operator
  import time
  import torch
  import torch.nn.functional
  from pytext.common.constants import Stage
  from pytext.config.module_config import PerplexityType
  from pytext.data import CommonMetadata
  from pytext.metrics.language_model_metrics import compute_language_model_metric, LanguageModelMetric
  from pytext.utils import cuda
  from .channel import ConsoleChannel, FileChannel
  from .metric_reporter import MetricReporter
label_desc: Use image node_id 1 for calling the MaskedLMMetricReporter obj's underlying member method code with example usage: obj.from_config(cls, config, meta, tensorizers) and returns: cls