code: def batch(self, client=None):
          
          client = self._require_client(client)
          return Batch(self, client)
docs: Return a batch to use as a context manager.
  
          :type client: :class:`~google.cloud.logging.client.Client` or
                        ``NoneType``
          :param client: the client to use.  If not passed, falls back to the
                         ``client`` stored on the current topic.
  
          :rtype: :class:`Batch`
          :returns: A batch to use as a context manager.