def create_team(params):

    db = api.common.get_conn()

    if not shell_accounts_available() and api.config.enable_shell:
        raise SevereInternalException("There are no shell accounts available.")

    params['tid'] = api.common.token()
    params['size'] = 0

    db.teams.insert(params)

    if api.config.enable_shell:
        assign_shell_account(params["tid"])

    return params['tid']
Directly inserts team into the database. Assumes all fields have been validated.
dataset/ETHPy150Open picoCTF/picoCTF-Platform-2/api/api/team.py/create_team