code: def write_entries(self, entries, logger_name=None, resource=None, labels=None):
          
          data = {"entries": list(entries)}
  
          if logger_name is not None:
              data["logName"] = logger_name
  
          if resource is not None:
              data["resource"] = resource
  
          if labels is not None:
              data["labels"] = labels
  
          self.api_request(method="POST", path="/entries:write", data=data)
docs: API call:  log an entry resource via a POST request
  
          See
          https://cloud.google.com/logging/docs/reference/v2/rest/v2/entries/write
  
          :type entries: sequence of mapping
          :param entries: the log entry resources to log.
  
          :type logger_name: str
          :param logger_name: name of default logger to which to log the entries;
                              individual entries may override.
  
          :type resource: mapping
          :param resource: default resource to associate with entries;
                           individual entries may override.
  
          :type labels: mapping
          :param labels: default labels to associate with entries;
                         individual entries may override.