code: def test_contains(n):
      elements = get_elements(n)
      dis = DisjointSet(elements)
      for x in elements:
          assert x in dis
  
      assert "dummy" not in dis
  
file_path: scipy/scipy/cluster/tests/test_disjoint_set.py
imports: import pytest
  from pytest import raises
  import numpy
  from scipy.cluster.hierarchy import DisjointSet
  import string
label_desc: Use image node_id 5 for calling a global function with example usage: test_contains(n) without return types