code: def is_value_in(constants_group, value):
      
      for const_value, label in constants_group:
          if const_value == value:
              return True
      return False
docs: Checks whether value can be found in the given constants group, which in
      turn, should be a Django-like choices tuple.