docstr: The method takes a string and turns it into mysql_packets
  
  :param body_string: text to turn into mysql_packets
  :return: a list of mysql_packets
docstr_tok: ["The","method","takes","a","string","and","turns","it","into","mysql_packets",":","param","body_string",":","text","to","turn","into","mysql_packets",":","return",":","a","list","of","mysql_packets"]
code: def bodyStringToPackets(body_string):
      """
      The method takes a string and turns it into mysql_packets
  
      :param body_string: text to turn into mysql_packets
      :return: a list of mysql_packets
  
      """
      ret = []
      body_len = len(body_string)
      mod = body_len % MAX_PACKET_SIZE
      num_packets = body_len / MAX_PACKET_SIZE + (1 if mod > 0 else 0)
  
      for i in range(num_packets):
          left_limit = i * MAX_PACKET_SIZE
          right_limit = (
              mod if i + 1 == num_packets else MAX_PACKET_SIZE * (i + 1)
          )
          body = body_string[left_limit:right_limit]
          ret += [Packet(length=right_limit, seq=i + 1, body=body)]
  
      return ret
  
imports: import struct
  from mindsdb.api.mysql.mysql_proxy.libs.constants.mysql import MAX_PACKET_SIZE
  from mindsdb.utilities import log
label_desc: Use image node_id 15 for calling the Packet obj's underlying member method code with example usage: obj.bodyStringToPackets(body_string) and returns: ret