class_docstr: Tests for the cuDFInterface.
class_docstr_tok: ["Tests","for","the","cuDFInterface","."]
code: def test_dataset_groupby_second_dim(self):
      group1 = {"Gender": ["M"], "Weight": [15], "Height": [0.8]}
      group2 = {"Gender": ["M"], "Weight": [18], "Height": [0.6]}
      group3 = {"Gender": ["F"], "Weight": [10], "Height": [0.8]}
      grouped = HoloMap(
          [
              (10, Dataset(group1, kdims=["Gender"], vdims=self.vdims)),
              (16, Dataset(group2, kdims=["Gender"], vdims=self.vdims)),
              (12, Dataset(group3, kdims=["Gender"], vdims=self.vdims)),
          ],
          kdims=["Age"],
      )
      self.assertEqual(
          self.table.groupby(["Age"]).apply("sort"), grouped
      )
  
imports: import logging
  from unittest import SkipTest
  import numpy
  from holoviews.core.data import Dataset
  from holoviews.core.spaces import HoloMap
  from .base import HeterogeneousColumnTests, InterfaceTests
label_desc: Use image node_id 12 for calling the cuDFInterfaceTests obj's underlying member method code with example usage: obj.test_dataset_groupby_second_dim() without return types