code: def data_summary(
      data,
      as_percentage: bool = False,
      auto_float: bool = True,
      compute_backend=None,
  ):
      """Summary statistics and data description.
  
      Args:
          data: The dataframe
          as_percentage (bool): If True, display counts as percentage over total
          auto_float (bool): If True, apply formatting to float values
          compute_backend: The compute backend.
  
      Returns:
          The dataframe with metrics in rows
      """
      widget = _get_compute_backend(
          backend=compute_backend, df=data
      ).compute_data_summary(data)
      widget.as_percentage = as_percentage
      widget.auto_float = auto_float
      return widget
  
imports: from typing import Dict, Callable, Optional
  import warnings
  import pandas
  from pandas.core.dtypes.common import is_float
  import numpy
  from data_describe._widget import BaseWidget
  from data_describe.compat import _requires, _compat, _is_series, _is_dataframe
  from data_describe.backends._backends import _get_compute_backend
label_desc: Use image node_id 1 for calling a global function with example usage: data_summary(data, as_percentage, auto_float, compute_backend) and returns: widget