code: def test_deprecation():
      heur = heuristics.BALD()
      ds = MyDataset()
      dataset = ActiveLearningDataset(ds, make_unlabelled=lambda x: -1)
      with warnings.catch_warnings(record=True) as w:
          active_loop = ActiveLearningLoop(
              dataset,
              get_probs_iter,
              heur,
              ndata_to_label=10,
              dummy_param=1,
          )
          assert issubclass(w[-1].category, DeprecationWarning)
          assert "ndata_to_label" in str(w[-1].message)
  
imports: import os
  import pickle
  import warnings
  from unittest.mock import patch
  import numpy
  import pytest
  from torch.utils.data import Dataset
  from baal.active import ActiveLearningDataset, heuristics
  from baal.active.active_loop import ActiveLearningLoop
label_desc: Use image node_id 7 for calling a global function with example usage: test_deprecation() without return types