code: def has_groups(data: pd.DataFrame) -> bool:
      """
      Check if data is grouped
  
      Parameters
      ----------
      data :
          Data
  
      Returns
      -------
      out : bool
          If True, the data has groups.
      """
      # If any row in the group column is equal to NO_GROUP, then
      # the data all of them are and the data has no groups
      return data.loc[0, "group"] != NO_GROUP
  
imports: from __future__ import annotations
  import re
  import typing
  from collections.abc import Iterable, Sequence
  from contextlib import suppress
  from copy import deepcopy
  from dataclasses import fields
  from typing import Any, Dict
  import pandas
  from ..iapi import labels_view
  from .evaluation import after_stat, stage
label_desc: Use image node_id 10 for calling a global function with example usage: has_groups(data) and returns: unknown