code: def test_dataset_construct_groups(array_type, group_data, arrow_type):
      data = generate_dummy_arrow_table()
      groups = array_type(group_data, type=arrow_type)
      dataset = lgb.Dataset(
          data, group=groups, params=dummy_dataset_params()
      )
      dataset.construct()
  
      expected = np.array([0, 2, 5], dtype=np.int32)
      np_assert_array_equal(
          expected, dataset.get_field("group"), strict=True
      )
  
imports: import filecmp
  from typing import Any, Dict, Optional
  import numpy
  import pyarrow
  import pytest
  import lightgbm
  from .utils import np_assert_array_equal
label_desc: Use image node_id 12 for calling a global function with example usage: test_dataset_construct_groups(array_type, group_data, arrow_type) without return types