def send_command_response(self,<EOL>source: list,<EOL>command: str,<EOL>*args,<EOL>**kwargs):
args = _json.dumps(args).encode('<STR_LIT:utf8>')<EOL>kwargs = _json.dumps(kwargs).encode('<STR_LIT:utf8>')<EOL>if isinstance(source, list):<EOL><INDENT>frame = (*source, b'<STR_LIT>', command.encode('<STR_LIT:utf8>'), args, kwargs)<EOL><DEDENT>else:<EOL><INDENT>frame = (b'<STR_LIT>', command.encode('<STR_LIT:utf8>'), args, kwargs)<EOL><DEDENT>if self._run_control_loop:<EOL><INDENT>self.add_callback(self.command_socket.send_multipart, frame)<EOL><DEDENT>else:<EOL><INDENT>self.command_socket.send_multipart(frame)<EOL><DEDENT>
Used in bot observer `on_next` method