code: def first(self):
          
  
          if not self._stream:
              raise InvalidUsage('first() is only available when stream=True')
  
          try:
              content = next(self.all())
          except StopIteration:
              raise NoResults("No records found")
  
          return content
docs: Return the first record or raise an exception if the result doesn't contain any data
  
          :return:
              - Dictionary containing the first item in the response content
  
          :raise:
              - NoResults: If no results were found