class_docstr: Concrete implementation of GSpreadClient.
class_docstr_tok: ["Concrete","implementation","of","GSpreadClient","."]
code: def write_records(
      self,
      sid: sheets_id.SheetsIdentifier,
      rows: Sequence[Sequence[Any]],
  ) -> None:
      sheet = self._open(sid)
  
      # Create a new Worksheet.
      # `title` has to be carefully constructed: some characters like colon ":"
      # will not work with gspread in Worksheet.append_rows().
      current_datetime = datetime.datetime.now()
      title = (
          f"Results {current_datetime:%Y_%m_%d} ({current_datetime:%s})"
      )
  
      # append_rows() will resize the worksheet as needed, so `rows` and `cols`
      # can be set to 1 to create a worksheet with only a single cell.
      worksheet = sheet.add_worksheet(title=title, rows=1, cols=1)
      worksheet.append_rows(values=rows)
  
      if self._ipython_env is not None:
          self._ipython_env.display_html(
              "Results written to new worksheet {}".format(
                  html_utils.get_anchor_tag(
                      url=sheets_id.SheetsURL(worksheet.url),
                      text="{} in {}".format(
                          worksheet.title, sheet.title
                      ),
                  )
              )
          )
      else:
          print(
              "Results written to new worksheet {} in {}".format(
                  worksheet.title, sheet.title
              )
          )
  
imports: from __future__ import annotations
  import abc
  import datetime
  from typing import Any, Callable, Mapping, Sequence
  from google.auth import credentials
  from google.generativeai.notebook import html_utils
  from google.generativeai.notebook import ipython_env
  from google.generativeai.notebook import sheets_id
label_desc: Use image node_id 5 for calling the GSpreadClientImpl obj's underlying member method code with example usage: obj.write_records(sid, rows) without return types