code: def test_has_momentum_scheduler(get_dummy_model):
      """Test the handler has attribute `momentum_scheduler` and `_momentum_lambda_obj`"""
      momentum_warmup = 0.0
      warmup_iters = 10
      ema_handler = EMAHandler(
          get_dummy_model(),
          momentum_warmup=momentum_warmup,
          warmup_iters=warmup_iters,
      )
      assert hasattr(ema_handler, "momentum_scheduler")
      assert hasattr(ema_handler, "_momentum_lambda_obj")
  
imports: import os
  from typing import Any, Callable, Union
  import pytest
  import torch
  import torch.nn
  from torch.nn.parallel import DataParallel, DistributedDataParallel
  import ignite.distributed
  from ignite.engine import Engine, Events
  from ignite.handlers import EMAHandler
label_desc: Use image node_id 6 for calling a global function with example usage: test_has_momentum_scheduler(get_dummy_model) without return types