code: def __init__(self, gd1: "GroupedData", gd2: "GroupedData"):
      gd1._df._check_same_session(gd2._df)
      self._gd1 = gd1
      self._gd2 = gd2
  
imports: from pyspark.sql.connect.utils import check_dependencies
  import warnings
  from typing import Any, Dict, List, Sequence, Union, TYPE_CHECKING, Optional, overload, cast
  from pyspark.rdd import PythonEvalType
  from pyspark.sql.group import GroupedData
  from pyspark.sql.pandas.group_ops import PandasCogroupedOps
  from pyspark.sql.types import NumericType
  from pyspark.sql.types import StructType
  import pyspark.sql.connect.plan
  from pyspark.sql.connect.column import Column
  from pyspark.sql.connect.functions.builtin import _invoke_function, col, lit
  from pyspark.errors import PySparkNotImplementedError, PySparkTypeError
label_desc: Use image node_id 1 to create a new PandasCogroupedOps object  with example: obj = PandasCogroupedOps(gd1, gd2)