code: def task(self, task):
      self._task = _as_int_or_none(task)
      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 3 for calling the DeviceSpecV1 obj's underlying member method code with example usage: obj.task(task) without return types