code: def test_bad_init(barbell):
      with pytest.raises(TypeError):
          generator = GraphWaveGenerator(
              None, scales=(0.1, 2, 3, 4), degree=10
          )
  
      with pytest.raises(
          TypeError, match="degree: expected.*found float"
      ):
          generator = GraphWaveGenerator(
              barbell, scales=(0.1, 2, 3, 4), degree=1.1
          )
  
      with pytest.raises(ValueError, match="degree: expected.*found 0"):
          generator = GraphWaveGenerator(
              barbell, scales=(0.1, 2, 3, 4), degree=0
          )
  
file_path: stellargraph/tests/mapper/test_graphwave_generator.py
imports: from stellargraph.core.graph import *
  from stellargraph.mapper.graphwave_generator import GraphWaveGenerator, _empirical_characteristic_function
  from ..test_utils.graphs import barbell
  import numpy
  import pytest
  import scipy.sparse
  import tensorflow
label_desc: Use image node_id 3 for calling a global function with example usage: test_bad_init(barbell) without return types