code: async def metrics(self, offs, size=None):
          '''
          Yield metrics rows starting at offset.
  
          Args:
              offs (int): The index offset.
              size (int): The maximum number of records to yield.
  
          Yields:
              ((int, dict)): An index offset, info tuple for metrics.
          '''
          for i, (indx, item) in enumerate(self._metrics.iter(offs)):
  
              if size is not None and i >= size:
                  return
  
              yield indx, iteync def metrics(self, offs, size=None):
          '''
          Yield metrics rows starting at offset.
  
          Args:
              offs (int): The index offset.
              size (int): The maximum number of records to yield.
  
          Yields:
              ((int, dict)): An index offset, info tuple for metrics.
          '''
          for i, (indx, item) in enumerate(self._metrics.iter(offs)):
  
              if size is not None and i >= size:
                  return
  
              yield indx, item
docs: Yield metrics rows starting at offset.
  
          Args:
              offs (int): The index offset.
              size (int): The maximum number of records to yield.
  
          Yields:
              ((int, dict)): An index offset, info tuple for metrics.