code: def test_from_params(self):
      params = Params({"type": "exponential", "decay": 0.99})
  
      _ = MovingAverage.from_params(params, parameters=[])
  
file_path: allennlp/tests/training/moving_average_test.py
imports: from typing import Dict
  import torch
  import numpy
  from allennlp.common.params import Params
  from allennlp.common.testing import AllenNlpTestCase
  from allennlp.models.model import Model
  from allennlp.training.moving_average import MovingAverage, ExponentialMovingAverage
label_desc: Use image node_id 1 for calling the MovingAverageTest obj's underlying member method code with example usage: obj.test_from_params() without return types