def METHOD_NAME(family_doc):
    """
    Create new types in the test family, and assign values to the type
    parameter.
    """
    if not isinstance(family_doc, DB.Document):
        raise TypeError()
    if not family_doc.IsFamilyDocument:
        raise ValueError()
    manager = family_doc.FamilyManager
    parameter = manager.get_Parameter(TEST_PARAMETER_NAME)
    with Transaction("Add Family Types", doc=family_doc):
        for k, v in TYPES_TO_ADD.items():
            manager.NewType(k)
            manager.Set(parameter, v)