def METHOD_NAME(family_name, family_file, doc=None):
    doc = doc or DOCS.doc
    famsym = query.get_family(family_name, doc=doc)
    if not famsym:
        with transaction.Transaction('Load Family', doc=doc):
            mlogger.debug('Family \"%s\" did not exist.', family_name)
            if create.load_family(family_file, doc=doc):
                return query.get_family(family_name, doc=doc)
            else:
                raise PyRevitException('Error loading family from: {}'
                                       .format(family_file))
    return famsym