code: def test_dataset_construct_weights(
      array_type, weight_data, arrow_type
  ):
      data = generate_dummy_arrow_table()
      weights = array_type(weight_data, type=arrow_type)
      dataset = lgb.Dataset(
          data, weight=weights, params=dummy_dataset_params()
      )
      dataset.construct()
  
      expected = np.array([3, 0.7, 1.5, 0.5, 0.1], dtype=np.float32)
      np_assert_array_equal(expected, dataset.get_weight(), 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 11 for calling a global function with example usage: test_dataset_construct_weights(array_type, weight_data, arrow_type) without return types