def METHOD_NAME(query):
    """This method will execute command for the tutorials examples. If returncode
    is non-zero we raise exception otherwise we return output of command.
    Args:
        query (str): Run a arbitrary shell command.
    """
    print(f"Executing Command: {query}")
    command = subprocess.METHOD_NAME(
        [query], shell=True, check=True, universal_newlines=True, capture_output=True
    )
    # for non-negative returncode
    if command.returncode != 0:
        raise BuildTestError(f"[red]Returncode: {command.returncode}")
    console.print(f"[green]Returncode: {command.returncode}")
    return command.stdout