code: def test_builtin_sequence_types(self):
      # a collection of tests on builtin sequence types
      a = range(10)
      for i in a:
          self.assertIn(i, a)
      self.assertNotIn(16, a)
      self.assertNotIn(a, a)
  
      a = tuple(a)
      for i in a:
          self.assertIn(i, a)
      self.assertNotIn(16, a)
      self.assertNotIn(a, a)
  
      class Deviant1:
          """Behaves strangely when compared
  
          This class is designed to make sure that the contains code
          works when the list is modified during the check.
          """
  
          aList = list(range(15))
  
          def __eq__(self, other):
              if other == 12:
                  self.aList.remove(12)
                  self.aList.remove(13)
                  self.aList.remove(14)
              return 0
  
      self.assertNotIn(Deviant1(), Deviant1.aList)
  
file_path: cpython/Lib/test/test_contains.py
imports: from collections import deque
  import unittest
  from test.support import NEVER_EQ
label_desc: Use image node_id 2 for calling the TestContains obj's underlying member method code with example usage: obj.test_builtin_sequence_types() and returns: int