code: def get_ts_groups(df: pd.DataFrame, tss) -> list:
      group_combinations = ["__default"]
      if tss.group_by:
          groups = [
              tuple([g]) if not isinstance(g, tuple) else g
              for g in list(df.groupby(by=tss.group_by).groups.keys())
          ]
          group_combinations.extend(groups)
      return group_combinations
  
file_path: lightwood/lightwood/helpers/ts.py
imports: from typing import Tuple, Dict
  from datetime import datetime
  import numpy
  import pandas
label_desc: Use image node_id 1 for calling a global function with example usage: get_ts_groups(df, tss) and returns: group_combinations