code: def ping():
      '''
      Ping the device on the other end of the connection
  
      .. code-block: bash
  
          salt '*' onyx.cmd ping
      '''
      if _worker_name() not in DETAILS:
          init()
      try:
          return DETAILS[_worker_name()].conn.isalive()
      except TerminalException as e:
          log.error(e)
          return Falsf ping():
      '''
      Ping the device on the other end of the connection
  
      .. code-block: bash
  
          salt '*' onyx.cmd ping
      '''
      if _worker_name() not in DETAILS:
          init()
      try:
          return DETAILS[_worker_name()].conn.isalive()
      except TerminalException as e:
          log.error(e)
          return False
docs: Ping the device on the other end of the connection
  
      .. code-block: bash
  
          salt '*' onyx.cmd ping