code: def should_render_domain(domain: str, output: str) -> bool:
      is_ml = "-ml" in output
      if domain == ONNX_ML_DOMAIN:
          return is_ml
      else:
          return not is_ml
  
imports: import os
  from collections import defaultdict
  from typing import Any, Dict, List, NamedTuple, Sequence, Set, Tuple
  import numpy
  from onnx import defs, helper
  from onnx.backend.sample.ops import collect_sample_implementations
  from onnx.backend.test.case import collect_snippets
  from onnx.defs import ONNX_ML_DOMAIN, OpSchema
label_desc: Use image node_id 2 for calling a global function with example usage: should_render_domain(domain, output) and returns: is_ml, unknown