code: def read_sql(sql, con, index_col, **kwargs):
      """
      Read SQL query or database table into a DataFrame.
  
      This function is a convenience wrapper around ``read_sql_table`` and
      ``read_sql_query``. It will delegate to the specific function depending
      on the provided input. A SQL query will be routed to ``read_sql_query``,
      while a database table name will be routed to ``read_sql_table``.
      Note that the delegated function might have more specific notes about
      their functionality not listed here.
  
      Parameters
      ----------
      sql : str or SQLAlchemy Selectable
          Name of SQL table in database or SQL query to be executed. TextClause is not supported
      con : str
          Full sqlalchemy URI for the database connection
      index_col : str
          Column which becomes the index, and defines the partitioning. Should
          be a indexed column in the SQL server, and any orderable type. If the
          type is number or time, then partition boundaries can be inferred from
          ``npartitions`` or ``bytes_per_chunk``; otherwise must supply explicit
          ``divisions``.
  
      Returns
      -------
      dask.dataframe
  
      See Also
      --------
      read_sql_table : Read SQL database table into a DataFrame.
      read_sql_query : Read SQL query into a DataFrame.
      """
      if isinstance(sql, str):
          return read_sql_table(sql, con, index_col, **kwargs)
      else:
          return read_sql_query(sql, con, index_col, **kwargs)
  
file_path: dask/dask/dataframe/io/sql.py
imports: from __future__ import annotations
  import warnings
  import numpy
  import pandas
  from dask.base import compute
  from dask.dataframe import methods
  from dask.dataframe.io.io import from_delayed, from_pandas
  from dask.dataframe.utils import pyarrow_strings_enabled
  from dask.delayed import delayed, tokenize
  from dask.utils import parse_bytes
label_desc: Use image node_id 3 for calling a global function with example usage: read_sql(sql, con, index_col) and returns: read_sql_table, read_sql_query