code: def tovalues(self, element_value):
          
  
          if not isinstance(element_value, (six.integer_types, CIMInt)):
              raise TypeError(
                  _format("The value for value-mapped {0} is not "
                          "integer-typed, but has Python type: {1}",
                          self._element_str(), type(element_value)))
  
          # try single value
          try:
              return self._b2v_single_dict[element_value]
          except KeyError:
              pass
  
          # try value ranges
          for range_tuple in self._b2v_range_tuple_list:
              lo, hi, values_str = range_tuple
              if lo <= element_value <= hi:
                  return values_str
  
          # try catch-all '..'
          if self._b2v_unclaimed is not None:
              return self._b2v_unclaimed
  
          raise ValueError(
              _format("The value for value-mapped {0} is outside of the set "
                      "defined by its ValueMap qualifier: {1!A}",
                      self._element_str(), element_value))
docs: Return the `Values` string for an element value, based upon this value
          mapping.
  
          Parameters:
  
            element_value (:term:`integer` or :class:`~pywbem.CIMInt`):
              The value of the CIM element (property, method, parameter).
  
          Returns:
  
            :term:`string`:
              The `Values` string for the element value.
  
          Raises:
  
            ValueError: Element value outside of the set defined by `ValueMap`.
            TypeError: Element value is not an integer type.