code: def test_colors(self):
      data = [("red", 5), ("blue", 1), ("yellow", 8), ("black", 0)]
      data.sort(key=lambda r: r[1])
      keys = [r[1] for r in data]
      bisect_left = self.module.bisect_left
      self.assertEqual(data[bisect_left(keys, 0)], ("black", 0))
      self.assertEqual(data[bisect_left(keys, 1)], ("blue", 1))
      self.assertEqual(data[bisect_left(keys, 5)], ("red", 5))
      self.assertEqual(data[bisect_left(keys, 8)], ("yellow", 8))
  
imports: import sys
  import unittest
  from test.support import import_helper
  from collections import UserList
label_desc: Use image node_id 2 for calling the TestDocExample obj's underlying member method code with example usage: obj.test_colors() without return types