code: def _make_table(values):
          
          import collections
          table = collections.deque()
          start, end = values[0], values[0]
          for num, value in enumerate(values):
              if num == 0:
                  table.append((value, value,))
                  continue
              start, end = table.pop()
              if end == value - 1:
                  table.append((start, value,))
              else:
                  table.append((start, end,))
                  table.append((value, value,))
          return tuple(table)
docs: Return a tuple of lookup tables for given values.