def METHOD_NAME(remote_command_executor, test_datadir, timeout):
    logging.info("Testing inline submission.")
    _test_job_submission(remote_command_executor, f"awsbsub --vcpus 2 --memory 256 --timeout {timeout} sleep 1")
    # FIXME: uncomment once this bug is fixed
    # logging.info("Testing inline submission with env.")
    # _test_job_submission(
    #     remote_command_executor,
    #     f'export TEST=test && awsbsub --vcpus 2 --memory 256 --timeout {timeout} -e TEST "env | grep TEST=test"',
    # )
    logging.info("Testing stdin submission with env")
    _test_job_submission(
        remote_command_executor,
        f'export TEST=test && echo "env | grep TEST=test" | awsbsub --vcpus 2 --memory 256 --timeout {timeout} -e TEST',
    )
    logging.info("Testing command file with env")
    _test_job_submission(
        remote_command_executor,
        f"export TEST=test && awsbsub --vcpus 2 --memory 256 --timeout {timeout} -e TEST -cf test_simple_job.sh",
        [str(test_datadir / "test_simple_job.sh")],
    )