code: def test_from_params(self):
      optimizer = self._get_optimizer()
      scheduler = MomentumScheduler.from_params(
          optimizer=optimizer,
          params=Params(
              {
                  "type": "inverted_triangular",
                  "cool_down": 10,
                  "warm_up": 10,
              }
          ),
      )
      assert scheduler.cool_down == 10
      assert scheduler.warm_up == 10
      assert scheduler.ratio == 10
      assert scheduler.last_epoch == -1
  
file_path: allennlp/tests/training/momentum_schedulers/inverted_triangular_test.py
imports: from math import isclose
  import torch
  from allennlp.common.params import Params
  from allennlp.common.testing import AllenNlpTestCase
  from allennlp.training.momentum_schedulers import MomentumScheduler
  from allennlp.training.optimizers import Optimizer
label_desc: Use image node_id 3 for calling the InvertedTriangularTest obj's underlying member method code with example usage: obj.test_from_params() without return types