class_docstr: Device specification.
class_docstr_tok: ["Device","specification","."]
docstr: Name string.
code: def name_string(self):
      """Name string."""
      if self.device_type is DeviceType.CPU:
          return (
              self.host_address
              + ":"
              + DeviceType.CPU.name
              + ":"
              + str(self.device_index)
          )
      else:
          return (
              self.host_address
              + ":"
              + self.device_type.name
              + ":"
              + str(self.device_index)
          )
  
imports: import os
  import re
  from enum import Enum
  from typing import NamedTuple, Optional, Dict
  import yaml
  import paramiko
  from autodist.utils import logging
  from autodist.utils.network import is_loopback_address, is_local_address
label_desc: Use image node_id 2 for calling the DeviceSpec obj's underlying member method code with example usage: obj.name_string() and returns: unknown, unknown