code: def device_type(self, device_type):
      self._device_type = _as_device_str_or_none(device_type)
      self._as_string, self._hash = None, None
  
imports: from tensorflow.python.util.tf_export import tf_export
  from tensorflow.python import pywrap_tfe
label_desc: Use image node_id 4 for calling the DeviceSpecV1 obj's underlying member method code with example usage: obj.device_type(device_type) without return types