def METHOD_NAME(context, container_name, bash_command, warn=False):
    """
    Executes bash commands on docker container
    :param context: Context passed from each testing method
    :param container_name: Name of container cmd will be executed on
    :param bash_command: Bash command that will be executed on container
    :param warn: Default is False, if set to True will not cause codebuild to Fail when returned with a non-zero exit code
    :return: Returns result object of bash command, contains stdout, stderr....
    """
    return context.run(
        f"docker exec --user root {container_name} bash -c '{bash_command}'", hide=True, warn=warn
    )