code: def test_lightgbm_trainer_resources():
      """`trainer_resources` is not allowed in the scaling config"""
      with pytest.raises(ValueError):
          LightGBMTrainer._validate_scaling_config(
              ScalingConfig(trainer_resources={"something": 1})
          )
  
imports: import math
  import lightgbm
  import pandas
  import pytest
  from sklearn.datasets import load_breast_cancer
  from sklearn.model_selection import train_test_split
  import ray
  from ray import tune
  from ray.train import ScalingConfig
  from ray.train.constants import TRAIN_DATASET_KEY
  from ray.train.lightgbm import LightGBMTrainer
label_desc: Use image node_id 11 for calling a global function with example usage: test_lightgbm_trainer_resources() without return types