docstr: Check that w_range is valid
docstr_tok: ["Check","that","w_range","is","valid"]
code: def test_min_max_weights_exception(self):
      """Check that w_range is valid"""
      with pytest.raises(
          ValueError,
          match="Absolute minimum weight must be less than or equal to maximum weight",
      ):
          generate_structure(4, 1, w_min=0.5, w_max=0)
  
imports: import operator
  from typing import Hashable, Tuple, Union
  import networkx
  import numpy
  import pandas
  import pytest
  from networkx.algorithms.dag import is_directed_acyclic_graph
  from sklearn.gaussian_process.kernels import RBF
  from causalnex.structure.data_generators.core import _sample_binary_from_latent, _sample_count_from_latent, _sample_poisson, generate_structure, nonlinear_sem_generator, sem_generator
  from causalnex.structure.structuremodel import StructureModel
label_desc: Use image node_id 7 for calling the TestGenerateStructure obj's underlying member method code with example usage: obj.test_min_max_weights_exception() without return types