code: def test_shuffle_prop_warning():
      with warnings.catch_warnings(record=True) as tape:
          _ = BALD()
          assert len(tape) == 0
          _ = BALD(shuffle_prop=0.1)
          assert (
              len(tape) == 1
              and "shuffle_prop" in str(tape[0].message)
              and isinstance(tape[0].message, DeprecationWarning)
          )
  
      # Random doesn't raise the warning
      with warnings.catch_warnings(record=True) as tape:
          _ = Random()
          assert len(tape) == 0
  
imports: import warnings
  import numpy
  import pytest
  from hypothesis import given
  from torch_hypothesis import class_logits
  from baal.active import get_heuristic
  from baal.active.heuristics import Random, BALD, Margin, Entropy, Certainty, Variance, BatchBALD, AbstractHeuristic, requireprobs, Precomputed, CombineHeuristics
  from tests.test_utils import make_fake_dist, make_3d_fake_dist, make_5d_fake_dist
label_desc: Use image node_id 19 for calling a global function with example usage: test_shuffle_prop_warning() without return types