def METHOD_NAME(
    scope_trees: list[Scope] | list[str] | list[globus_sdk.scopes.MutableScope],
) -> list[Scope]:
    ret = []
    for scope in scope_trees:
        if isinstance(scope, str):
            ret.extend(Scope.parse(scope))
        elif isinstance(scope, globus_sdk.scopes.MutableScope):
            ret.extend(Scope.parse(str(scope)))
        else:
            ret.append(scope)
    return ret