def get_same_container_repos_from_spec(app_or_library_spec):
repos = set()<EOL>app_or_lib_repo = get_repo_of_app_or_library(app_or_library_spec.name)<EOL>if app_or_lib_repo is not None:<EOL><INDENT>repos.add(app_or_lib_repo)<EOL><DEDENT>for dependent_name in app_or_library_spec['<STR_LIT>']['<STR_LIT>']:<EOL><INDENT>repos.add(get_repo_of_app_or_library(dependent_name))<EOL><DEDENT>return repos<EOL>
Given the spec of an app or library, returns all repos that are guaranteed
    to live in the same container