code: def _check_sampler_type(sampler_type):
      if (
          F._default_context_str != "cpu"
          and sampler_type == SamplerType.Temporal
      ):
          pytest.skip(
              "TemporalNeighborSampler sampling tests are only supported on CPU."
          )
  
imports: import unittest
  from enum import Enum
  from functools import partial
  import backend
  import dgl
  import dgl.graphbolt
  import pytest
  import torch
  from torchdata.datapipes.iter import Mapper
  from .None import gb_test_utils
label_desc: Use image node_id 1 for calling a global function with example usage: _check_sampler_type(sampler_type) without return types