@public<EOL>def get_teams_by_name(org, team_names):
assert isinstance(org, github.Organization.Organization), type(org)<EOL>try:<EOL><INDENT>org_teams = list(org.get_teams())<EOL><DEDENT>except github.RateLimitExceededException:<EOL><INDENT>raise<EOL><DEDENT>except github.GithubException as e:<EOL><INDENT>msg = '<STR_LIT>'<EOL>raise CaughtOrganizationError(org, e, msg) from None<EOL><DEDENT>found_teams = []<EOL>for name in team_names:<EOL><INDENT>debug("<STR_LIT>".format(<EOL>o=org.login,<EOL>t=name<EOL>))<EOL>t = next((t for t in org_teams if t.name == name), None)<EOL>if t:<EOL><INDENT>debug('<STR_LIT>')<EOL>found_teams.append(t)<EOL><DEDENT>else:<EOL><INDENT>debug('<STR_LIT>')<EOL><DEDENT><DEDENT>return found_teams<EOL>
Find team(s) in org by name(s).

    Parameters
    ----------
    org: github.Organization.Organization
        org to search for team(s)

    teams: list(str)
        list of team names to search for

    Returns
    -------
    list of github.Team.Team objects

    Raises
    ------
    github.GithubException
        Upon error from github api