code: def find_segment_first(self, *args, **kwargs):
          
  
          for m in self.find_segments(*args, **kwargs):
              return m
  
          return None
docs: Finds the first matching segment.
  
          Same parameters as find_segments(), but only returns the first match, or None if no match is found.