docstr: Checks if the warning is thrown if the scheduler step is called
  before the sparsifier step
docstr_tok: ["Checks","if","the","warning","is","thrown","if","the","scheduler","step","is","called","before","the","sparsifier","step"]
code: def test_constructor(self):
      """Checks if the warning is thrown if the scheduler step is called
      before the sparsifier step"""
      data_list, data_with_config, defaults = self._get_data()
      sparsifier = self._get_sparsifier(
          data_list, data_with_config, defaults
      )
      schedule_param = self._get_schedule_param()
      scheduler = self._get_scheduler(sparsifier, schedule_param)
  
      assert scheduler.data_sparsifier == sparsifier
      assert scheduler._step_count == 1
  
      for name, config in sparsifier.data_groups.items():
          assert scheduler.base_param[name] == config.get(
              schedule_param, None
          )
  
imports: import logging
  import warnings
  from torch.testing._internal.common_utils import TestCase
  from torch import nn
  import torch
  from typing import Tuple
  import copy
  from torch.ao.pruning._experimental.data_sparsifier import DataNormSparsifier
  from torch.ao.pruning._experimental.data_scheduler import BaseDataScheduler
label_desc: Use image node_id 6 for calling the TestBaseDataScheduler obj's underlying member method code with example usage: obj.test_constructor() without return types