code: def create_observation_intervals(obs) -> List[interval]:
      return [interval(l, r) for l, r in obs]
  
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 8 for calling a global function with example usage: create_observation_intervals(obs) and returns: unknown