code: def test_dataset_construct_labels(array_type, label_data, arrow_type):
      data = generate_dummy_arrow_table()
      labels = array_type(label_data, type=arrow_type)
      dataset = lgb.Dataset(
          data, label=labels, params=dummy_dataset_params()
      )
      dataset.construct()
  
      expected = np.array([0, 1, 0, 0, 1], dtype=np.float32)
      np_assert_array_equal(expected, dataset.get_label(), 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 9 for calling a global function with example usage: test_dataset_construct_labels(array_type, label_data, arrow_type) without return types