code: def check_bitop_identities_1(self, x):
      eq = self.assertEqual
      with self.subTest(x=x):
          eq(x & 0, 0)
          eq(x | 0, x)
          eq(x ^ 0, x)
          eq(x & -1, x)
          eq(x | -1, -1)
          eq(x ^ -1, ~x)
          eq(x, ~~x)
          eq(x & x, x)
          eq(x | x, x)
          eq(x ^ x, 0)
          eq(x & ~x, 0)
          eq(x | ~x, -1)
          eq(x ^ ~x, -1)
          eq(-x, 1 + ~x)
          eq(-x, ~(x - 1))
      for n in range(2 * SHIFT):
          p2 = 2**n
          with self.subTest(x=x, n=n, p2=p2):
              eq(x << n >> n, x)
              eq(x // p2, x >> n)
              eq(x * p2, x << n)
              eq(x & -p2, x >> n << n)
              eq(x & -p2, x & ~(p2 - 1))
  
imports: import unittest
  from test import support
  import sys
  import random
  import math
  import array
label_desc: Use image node_id 6 for calling the LongTest obj's underlying member method code with example usage: obj.check_bitop_identities_1(x) without return types