code: def _func_get_rows(df):
      if isinstance(df, tuple):
          return df[0].shape[0]
      else:
          return df.shape[0]
  
file_path: cuml/python/cuml/dask/common/part_utils.py
imports: from cuml.dask.common.utils import parse_host_port
  from dask_cudf.core import Series
  from cuml.internals.safe_imports import gpu_only_import_from
  from dask.dataframe import Series
  from dask.dataframe import DataFrame
  from dask.array.core import Array
  from toolz import first
  from dask.distributed import futures_of, default_client, wait
  from collections.abc import Sequence
  from tornado import gen
  from functools import reduce
  from collections import OrderedDict
  from cuml.internals.safe_imports import cpu_only_import
label_desc: Use image node_id 3 for calling a global function with example usage: _func_get_rows(df) and returns: df, df