def METHOD_NAME(self, value, allow_custom=False):
    if type(value) in OBJ_MAP_MARKING.values():
        return value, False
    else:
        raise ValueError("must be a Statement, TLP Marking or a registered marking.")