code: def parse_from_string(self, spec):
      (
          self.job,
          self.replica,
          self.task,
          self.device_type,
          self.device_index,
      ) = self._string_to_components(spec)
  
      return self
  
imports: from tensorflow.python.util.tf_export import tf_export
  from tensorflow.python import pywrap_tfe
label_desc: Use image node_id 8 for calling the DeviceSpecV1 obj's underlying member method code with example usage: obj.parse_from_string(spec) and returns: self