code: def test_td_speakerbeam_invalid_type():
      with pytest.raises(ValueError):
          TDSpeakerBeamExtractor(
              input_dim=10,
              nonlinear="fff",
          )
  
imports: import pytest
  import torch
  from espnet2.enh.extractor.td_speakerbeam_extractor import TDSpeakerBeamExtractor
label_desc: Use image node_id 2 for calling a global function with example usage: test_td_speakerbeam_invalid_type() without return types