def makeStatementsSequenceOrStatement(statements, source_ref):

    if len(statements) > 1:
        return StatementsSequence(
            statements = mergeStatements(statements),
            source_ref = source_ref
        )
    else:
        return statements[0]
Convenience wrapper around oslo's execute() method.
dataset/ETHPy150Open kayhayen/Nuitka/nuitka/tree/Helpers.py/makeStatementsSequenceOrStatement--crossover with--dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/utils.py/execute