code: def write(self) -> int:
      _ = self.to_sql_kwargs.pop("sql", None)
      _ = self.to_sql_kwargs.pop("con", None)
      index = self.to_sql_kwargs.pop("index", False)
  
      written = self._write(index=index, **self.to_sql_kwargs)
      return written
  
file_path: datasets/src/datasets/io/sql.py
imports: import multiprocessing
  from typing import TYPE_CHECKING, Optional, Union
  from ..None import Dataset, Features, config
  from ..formatting import query_table
  from ..packaged_modules.sql.sql import Sql
  from ..utils import tqdm
  from .abc import AbstractDatasetInputStream
label_desc: Use image node_id 2 for calling the SqlDatasetWriter obj's underlying member method code with example usage: obj.write() and returns: written