code: def check_nonlinear(nolinear_type):
      if nolinear_type not in ["softmax", "relu"]:
          raise ValueError("Unsupported nonlinear type")
  
imports: import torch
  import torch.nn
  import torch.nn.functional
  from espnet2.enh.layers.adapt_layers import make_adapt_layer
label_desc: Use image node_id 1 for calling a global function with example usage: check_nonlinear(nolinear_type) without return types