docs: def batch_encode(self, iterator, *args, **kwargs):
          """
          Args:
              batch (list): Batch of objects to encode.
              *args: Arguments passed to ``encode``.
              **kwargs: Keyword arguments passed to ``encode``.
  
          Returns:
              list: Batch of encoded objects.
          """
          return [self.encode(object_, *args, **kwargs) for object_ in iterator]