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