code: def test_random(self, n=25):
      from random import randrange
  
      for i in range(n):
          data = [randrange(0, n, 2) for j in range(i)]
          data.sort()
          elem = randrange(-1, n + 1)
          ip = self.module.bisect_left(data, elem)
          if ip < len(data):
              self.assertTrue(elem <= data[ip])
          if ip > 0:
              self.assertTrue(data[ip - 1] < elem)
          ip = self.module.bisect_right(data, elem)
          if ip < len(data):
              self.assertTrue(elem < data[ip])
          if ip > 0:
              self.assertTrue(data[ip - 1] <= elem)
  
imports: import sys
  import unittest
  from test.support import import_helper
  from collections import UserList
label_desc: Use image node_id 6 for calling the TestBisect obj's underlying member method code with example usage: obj.test_random(n) without return types