code: def test_dataset_construct_weights_none():
      data = generate_dummy_arrow_table()
      weight = pa.array([1, 1, 1, 1, 1])
      dataset = lgb.Dataset(
          data, weight=weight, params=dummy_dataset_params()
      )
      dataset.construct()
      assert dataset.get_weight() is None
      assert dataset.get_field("weight") is None
  
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 10 for calling a global function with example usage: test_dataset_construct_weights_none() without return types