code: def _min_max_value(df: pd.DataFrame, jointly: bool) -> tuple:
      """
      Return the minimum and maximum of DataFrame.
  
      Use the `jointly` flag to control returning entire data or each column.
  
      .. # noqa: DAR101
      .. # noqa: DAR201
      """
      mmin = df.min()
      mmax = df.max()
      if jointly:
          if not isinstance(mmin, int):
              mmin = mmin.min()
          if not isinstance(mmax, int):
              mmax = mmax.max()
      return mmin, mmax
  
imports: from __future__ import annotations
  import pandas
  import pandas_flavor
  from janitor.utils import deprecated_alias, deprecated_kwargs
label_desc: Use image node_id 2 for calling a global function with example usage: _min_max_value(df, jointly) and returns: mmin,  mmax