docstr: Encode IQFeed API messages.
docstr_tok: ["Encode","IQFeed","API","messages","."]
code: def _send_cmd(self, cmd: str):
      """Encode IQFeed API messages."""
      self._sock.sendall(
          cmd.encode(encoding="latin-1", errors="strict")
      )
  
file_path: backtrader/contrib/utils/iqfeed-to-influxdb.py
imports: import sys
  import os
  import io
  import socket
  import logging
  import numpy
  import pandas
  import datetime
  import argparse
  from influxdb import DataFrameClient
  from influxdb.exceptions import InfluxDBClientError
label_desc: Use image node_id 2 for calling the IQFeedTool obj's underlying member method code with example usage: obj._send_cmd(cmd) without return types