class_docstr: Wrapper around gspread.client.Client.
  
  This adds a layer of indirection for us to inject mocks for testing.
class_docstr_tok: ["Wrapper","around","gspread.client.Client",".","This","adds","a","layer","of","indirection","for","us","to","inject","mocks","for","testing","."]
docstr: Writes results to a new worksheet to the Google Sheets document.
docstr_tok: ["Writes","results","to","a","new","worksheet","to","the","Google","Sheets","document","."]
code: def write_records(
      self,
      sid: sheets_id.SheetsIdentifier,
      rows: Sequence[Sequence[Any]],
  ) -> None:
      """Writes results to a new worksheet to the Google Sheets document."""
  
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 3 for calling the GSpreadClient obj's underlying member method code with example usage: obj.write_records(sid, rows) without return types