code: def execute_rex_code(self, code, filename=None, shell=None,
                           parent_environ=None, **Popen_args):
          
          def _actions_callback(executor):
              executor.execute_code(code, filename=filename)
  
          return self.execute_shell(shell=shell,
                                    parent_environ=parent_environ,
                                    command='',  # don't run any command
                                    block=False,
                                    actions_callback=_actions_callback,
                                    **Popen_args)
docs: Run some rex code in the context.
  
          Note:
              This is just a convenience form of `execute_shell`.
  
          Args:
              code (str): Rex code to execute.
              filename (str): Filename to report if there are syntax errors.
              shell: Shell type, for eg 'bash'. If None, the current shell type
                  is used.
              parent_environ: Environment to run the shell process in, if None
                  then the current environment is used.
              Popen_args: args to pass to the shell process object constructor.
  
          Returns:
              `subprocess.Popen` object for the shell process.