code: def compute_if_outputs(x, cond):  # type: ignore
      if cond:
          return []
      else:
          return x
  
file_path: onnx/onnx/backend/test/case/node/if.py
imports: import numpy
  import onnx
  from onnx.backend.test.case.base import Base
  from onnx.backend.test.case.node import expect
label_desc: Use image node_id 1 for calling a global function with example usage: compute_if_outputs(x, cond) and returns: list, x