code: def as_base_types(self):
      
      if not self._cached:
        # Create the single cache file the first time this is called.
        self._cached = {
            'name': self.name,
            'outcome': self.outcome.name,
        }
        if self.validators:
          self._cached['validators'] = data.convert_to_base_types(
              tuple(str(v) for v in self.validators))
        if self.dimensions:
          self._cached['dimensions'] = data.convert_to_base_types(self.dimensions)
        if self.units:
          self._cached['units'] = data.convert_to_base_types(self.units)
        if self.docstring:
          self._cached['docstring'] = self.docstring
      if self.measured_value.is_value_set:
        self._cached['measured_value'] = self.measured_value.basetype_value()
      return self._cached
docs: Convert this measurement to a dict of basic types.