def create(context, name, country, active, parent_id):
    """create(context, name, country, active, parent_id)

    Create a team.

    >>> dcictl team-create [OPTIONS]

    :param string name: Name of the team [required]
    :param string country: Country code where the team is based
    :param boolean active: Set the team in the (in)active state
    :param string parent_id: The ID of the team this team belongs to
    """

    state = utils.active_string(active)
    result = team.create(context, name=name, country=country, state=state,
                         parent_id=parent_id)
    utils.format_output(result, context.format)