parameters: (self, *args, **options)
docstring: Execute a command and return a parsed response
docstring_summary: Execute a command and return a parsed response
docstring_tokens: Execute a command and return a parsed response
function: def execute_command(self, *args, **options):
          "Execute a command and return a parsed response"
          pool = self.connection_pool
          command_name = args[0]
          connection = pool.get_connection(command_name, **options)
          try:
              connection.send_command(*args)
              return self.parse_response(connection, command_name, **options)
          except (ConnectionError, TimeoutError) as e:
              connection.disconnect()
              if not connection.retry_on_timeout and isinstance(e, TimeoutError):
                  raise
              connection.send_command(*args)
              return self.parse_response(connection, command_name, **options)
          finally:
              pool.release(connection)
function_tokens: def execute_command ( self , * args , * * options ) : pool = self . connection_pool command_name = args [ 0 ] connection = pool . get_connection ( command_name , * * options ) try : connection . send_command ( * args ) return self . parse_response ( connection , command_name , * * options ) except ( ConnectionError , TimeoutError ) as e : connection . disconnect ( ) if not connection . retry_on_timeout and isinstance ( e , TimeoutError ) : raise connection . send_command ( * args ) return self . parse_response ( connection , command_name , * * options ) finally : pool . release ( connection )