def execute(self, code, silent=False,
                user_variables=None, user_expressions=None):
        if user_variables is None:
            user_variables = []
        if user_expressions is None:
            user_expressions = {}
            
        # Don't waste network traffic if inputs are invalid
        if not isinstance(code, str):
            raise ValueError('code %r must be a string' % code)
        validate_string_list(user_variables)
        validate_string_dict(user_expressions)

        # Create class for content/msg creation. Related to, but possibly
        # not in Session.
        content = dict(code=code, silent=silent,
                       user_variables=user_variables,
                       user_expressions=user_expressions)
        msg = self.session.msg('execute_request', content)
        self._queue_request(msg)
        return msg['header']['msg_id']
:param ex_remove_files: Remove all the files from the datastore.
dataset/ETHPy150Open ipython/ipython-py3k/IPython/zmq/kernelmanager.py/ShellSocketChannel.execute--crossover with--dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/vsphere.py/VSphereNodeDriver.destroy_node