docstr: Convert cell data to an OpenDocument spreadsheet cell
  
  Parameters
  ----------
  cell : ExcelCell
      Spreadsheet cell data
  
  Returns
  -------
  pvalue, cell : Tuple[str, TableCell]
      Display value, Cell value
docstr_tok: ["Convert","cell","data","to","an","OpenDocument","spreadsheet","cell","Parameters","--","--","--","--","--","cell",":","ExcelCell","Spreadsheet","cell","data","Returns","--","--","--","-","pvalue",",","cell",":","Tuple","[","str",",","TableCell","]","Display","value",",","Cell","value"]
code: def _make_table_cell(self, cell) -> tuple[object, Any]:
      """Convert cell data to an OpenDocument spreadsheet cell
  
      Parameters
      ----------
      cell : ExcelCell
          Spreadsheet cell data
  
      Returns
      -------
      pvalue, cell : Tuple[str, TableCell]
          Display value, Cell value
      """
      from odf.table import TableCell
  
      attributes = self._make_table_cell_attributes(cell)
      val, fmt = self._value_with_fmt(cell.val)
      pvalue = value = val
      if isinstance(val, bool):
          value = str(val).lower()
          pvalue = str(val).upper()
      if isinstance(val, datetime.datetime):
          # Fast formatting
          value = val.isoformat()
          # Slow but locale-dependent
          pvalue = val.strftime("%c")
          return (
              pvalue,
              TableCell(
                  valuetype="date",
                  datevalue=value,
                  attributes=attributes,
              ),
          )
      elif isinstance(val, datetime.date):
          # Fast formatting
          value = f"{val.year}-{val.month:02d}-{val.day:02d}"
          # Slow but locale-dependent
          pvalue = val.strftime("%x")
          return (
              pvalue,
              TableCell(
                  valuetype="date",
                  datevalue=value,
                  attributes=attributes,
              ),
          )
      else:
          class_to_cell_type = {
              str: "string",
              int: "float",
              float: "float",
              bool: "boolean",
          }
          return (
              pvalue,
              TableCell(
                  valuetype=class_to_cell_type[type(val)],
                  value=value,
                  attributes=attributes,
              ),
          )
  
file_path: catboost/contrib/python/pandas/py3/pandas/io/excel/_odswriter.py
imports: from __future__ import annotations
  from collections import defaultdict
  import datetime
  from typing import TYPE_CHECKING, Any, DefaultDict, Tuple, cast
  from pandas._libs import json
  from pandas._typing import FilePath, StorageOptions, WriteExcelBuffer
  from pandas.io.excel._base import ExcelWriter
  from pandas.io.excel._util import combine_kwargs, validate_freeze_panes
label_desc: Use image node_id 7 for calling the ODSWriter obj's underlying member method code with example usage: obj._make_table_cell(cell) and returns: pvalue,  TableCell, pvalue,  TableCell, pvalue,  TableCell