code: def create_turnbull_lookup(
      turnbull_intervals: List[interval],
      observation_intervals: List[interval],
  ) -> Dict[interval, List[interval]]:
      turnbull_lookup = defaultdict(min_max)
  
      for i, turnbull_interval in enumerate(turnbull_intervals):
          # ask: which observations is this t_interval part of?
          for observation_interval in observation_intervals:
              # since left and right are sorted by left, we can stop after left > turnbull_interval[1] value
              if observation_interval.left > turnbull_interval.right:
                  break
              if is_subset(turnbull_interval, observation_interval):
                  turnbull_lookup[observation_interval].add(i)
  
      return {o: list(s) for o, s in turnbull_lookup.items()}
  
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 6 for calling a global function with example usage: create_turnbull_lookup(turnbull_intervals, observation_intervals) and returns: unknown