<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _query(self, cmd, *datas):
 """Helper function to allow method queries."""

        cmd = Command(query=cmd)
        return cmd.query(self._transport, self._protocol, *datas)