code: def test_dptnet_separator_invalid_args():
      with pytest.raises(ValueError):
          DPTNetSeparator(
              input_dim=8,
              rnn_type="rnn",
              num_spk=2,
              unit=10,
              dropout=0.1,
              layer=2,
              segment_size=2,
              nonlinear="fff",
          )
      with pytest.raises(AssertionError):
          DPTNetSeparator(
              input_dim=10,
              rnn_type="rnn",
              num_spk=2,
              unit=10,
              att_heads=4,
              dropout=0.1,
              layer=2,
              segment_size=2,
              nonlinear="relu",
          )
  
file_path: espnet/test/espnet2/enh/separator/test_dptnet_separator.py
imports: import pytest
  import torch
  from torch import Tensor
  from torch_complex import ComplexTensor
  from espnet2.enh.separator.dptnet_separator import DPTNetSeparator
label_desc: Use image node_id 3 for calling a global function with example usage: test_dptnet_separator_invalid_args() without return types