code: def level_is_between(level, min_level_value, max_level_value):
      
      level_value = get_level_value(level)
      if level_value is None:
          # unknown level value
          return False
      return level_value >= min_level_value and level_value <= max_level_value
docs: Returns True if level is between the specified min or max, inclusive.