class_docstr: Actual class implementing the magics functionality.
  
  We use a separate class to ensure a single, global instance
  of the magics class.
class_docstr_tok: ["Actual","class","implementing","the","magics","functionality",".","We","use","a","separate","class","to","ensure","a","single",",","global","instance","of","the","magics","class","."]
docstr: Perform various LLM-related operations.
  
  Args:
    cell_line: String to pass to the MagicsEngine.
    cell_body: Contents of the cell body.
  
  Returns:
    Results from running MagicsEngine.
docstr_tok: ["Perform","various","LLM-related","operations",".","Args",":","cell_line",":","String","to","pass","to","the","MagicsEngine",".","cell_body",":","Contents","of","the","cell","body",".","Returns",":","Results","from","running","MagicsEngine","."]
code: def llm(self, cell_line: str | None, cell_body: str | None):
      """Perform various LLM-related operations.
  
      Args:
        cell_line: String to pass to the MagicsEngine.
        cell_body: Contents of the cell body.
  
      Returns:
        Results from running MagicsEngine.
      """
      cell_line = cell_line or ""
      cell_body = cell_body or ""
      return self._engine.execute_cell(cell_line, cell_body)
  
imports: from __future__ import annotations
  import abc
  from google.auth import credentials
  from google.generativeai import client
  from google.generativeai.notebook import gspread_client
  from google.generativeai.notebook import ipython_env
  from google.generativeai.notebook import ipython_env_impl
  from google.generativeai.notebook import magics_engine
  from google.generativeai.notebook import post_process_utils
  from google.generativeai.notebook import sheets_utils
  import IPython
  from IPython.core import magic
label_desc: Use image node_id 2 for calling the MagicsImpl obj's underlying member method code with example usage: obj.llm(cell_line, cell_body) and returns: self