code: def test_non_spawnable():
      from numpy.random.bit_generator import ISeedSequence
  
      class FakeSeedSequence:
          def generate_state(self, n_words, dtype=np.uint32):
              return np.zeros(n_words, dtype=dtype)
  
      ISeedSequence.register(FakeSeedSequence)
  
      rng = np.random.default_rng(FakeSeedSequence())
  
      with pytest.raises(
          TypeError, match="The underlying SeedSequence"
      ):
          rng.spawn(5)
  
      with pytest.raises(
          TypeError, match="The underlying SeedSequence"
      ):
          rng.bit_generator.spawn(5)
  
imports: import os
  from os.path import join
  import sys
  import numpy
  from numpy.testing import assert_equal, assert_allclose, assert_array_equal, assert_raises
  import pytest
  from numpy.random import Generator, MT19937, PCG64, PCG64DXSM, Philox, RandomState, SeedSequence, SFC64, default_rng
  from numpy.random._common import interface
label_desc: Use image node_id 14 for calling a global function with example usage: test_non_spawnable() and returns: np