def add_feature_column(self, *args, **kwargs):
    assert (not self._frozen), 'Cannot modify model after finalization'
    fc = feature.FeatureColumnV1(*args, **kwargs)
    slot_id = fc.feature_slot.slot_id
    assert ((slot_id in self._feature_slots) and (self._feature_slots[slot_id] is fc.feature_slot)), ('FeatureSlot with id %d must be added to Model first' % slot_id)
    assert (slot_id not in self._feature_column_v1s), 'Only one FeatureColumnV1 can be created for each slot'
    self._feature_column_v1s[slot_id] = fc
    return fc
def add_feature_column(self, *args, **kwargs):
    assert (not self._frozen), 'Cannot modify model after finalization'
    fc = feature.FeatureColumnV1(*args, **kwargs)
    slot_id = fc.feature_slot.slot_id
    assert ((slot_id in self._feature_slots) and (self._feature_slots[slot_id] is fc.feature_slot)), ('FeatureSlot with id %d must be added to Model first' % slot_id)
    assert (slot_id not in self._feature_column_v1s), 'Only one FeatureColumnV1 can be created for each slot'
    self._feature_column_v1s[slot_id] = fc
    return fc