code: def get_device_option_cpu():
      device_option = core.DeviceOption(caffe2_pb2.CPU)
      return device_option
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  from functools import wraps
  import copy
  import numpy
  from caffe2.python import core, workspace
  from caffe2.proto import caffe2_pb2
label_desc: Use image node_id 18 for calling a global function with example usage: get_device_option_cpu() and returns: device_option