code: def from_intervals(cls, intervals):
          
          if not intervals:
              return None
          node = Node()
          node = node.init_from_sorted(sorted(intervals))
          return node
docs: :rtype : Node