code: def create_turnbull_intervals(left, right) -> List[interval]:
      """
      obs are []
      turnbulls are []
      """
      left = [[l, "l"] for l in left]
      right = [[r, "r"] for r in right]
  
      union = sorted(left + right)
  
      intervals = []
  
      for e1, e2 in zip(union, union[1:]):
          if e1[1] == "l" and e2[1] == "r":
              intervals.append(interval(e1[0], e2[0]))
  
      return intervals
  
imports: from collections import defaultdict, namedtuple
  import warnings
  import numpy
  from numpy.linalg import norm
  import pandas
  from lifelines.exceptions import ConvergenceWarning
  from typing import *
label_desc: Use image node_id 4 for calling a global function with example usage: create_turnbull_intervals(left, right) and returns: intervals