code: def _dev_options(draw):
      op_dev = draw(st.sampled_from(hu.device_options))
      if op_dev == hu.cpu_do:
          # the CPU op can only handle CPU tensor
          input_blob_dev = hu.cpu_do
      else:
          input_blob_dev = draw(st.sampled_from(hu.device_options))
  
      return op_dev, input_blob_dev
  
file_path: pytorch/caffe2/python/operator_test/ensure_cpu_output_op_test.py
imports: from hypothesis import given
  import numpy
  import hypothesis.strategies
  from caffe2.python import core, workspace
  import caffe2.python.hypothesis_test_util
label_desc: Use image node_id 1 for calling a global function with example usage: _dev_options(draw) and returns: op_dev,  input_blob_dev