class_docstr: Implementation based on:
  https://mariadb.com/kb/en/library/1-connecting-connecting/#initial-handshake-packet
class_docstr_tok: ["Implementation","based","on",":","https",":","\/\/mariadb.com\/kb\/en\/library\/1-connecting-connecting\/","#","initial-handshake-packet"]
code: def setup(self):
      err_code = 0
      if "err_code" in self._kwargs:
          err_code = self._kwargs["err_code"]
  
      msg = "ERROR"
      if "msg" in self._kwargs:
          msg = self._kwargs["msg"]
  
      self.err_header = Datum("int<1>", 255)
      self.err_code = Datum("int<2>", err_code)
      self.msg = Datum("string<EOF>", msg)
  
imports: from mindsdb.api.mysql.mysql_proxy.data_types.mysql_packet import Packet
  from mindsdb.api.mysql.mysql_proxy.data_types.mysql_datum import Datum
label_desc: Use image node_id 1 for calling the ErrPacket obj's underlying member method code with example usage: obj.setup() without return types