code: def skip_test_if_unsupported(
      device, k2_is_appropriate, k2_cuda_is_enabled
  ):
      if device == "cpu":
          supported, msg = k2_is_appropriate
      elif device == "cuda":
          supported, msg = k2_cuda_is_enabled
      else:
          raise ValueError(f"Unknown device: {device}")
      if not supported:
          pytest.skip(f"k2 test is skipped. Reason : {msg}")
  
file_path: NeMo/tests/collections/asr/k2/test_ctc.py
imports: import numpy
  import pytest
  import torch
  from torch.nn import CTCLoss
label_desc: Use image node_id 3 for calling a global function with example usage: skip_test_if_unsupported(device, k2_is_appropriate, k2_cuda_is_enabled) without return types