code: def _skip_for_invalid_environment(
      use_cuda_device=True, use_cuda_pinned_tensor=True
  ):
      if not get_accelerator().is_available():
          if use_cuda_device:
              pytest.skip(
                  "GPU tensors only supported in CUDA environments."
              )
          if use_cuda_pinned_tensor:
              pytest.skip(
                  "CUDA-pinned tensors only supported in CUDA environments."
              )
  
imports: import pytest
  import os
  import filecmp
  import torch
  import deepspeed
  import deepspeed.comm
  from deepspeed.accelerator import get_accelerator
  from deepspeed.ops.op_builder import AsyncIOBuilder
  from unit.common import DistributedTest
label_desc: Use image node_id 1 for calling a global function with example usage: _skip_for_invalid_environment(use_cuda_device, use_cuda_pinned_tensor) without return types