code: def override_level_names(self, mapping):
          
          if not isinstance(mapping, dict):
              return
          for key, val in mapping.items():
              if key in self._level_names:
                  self._level_names[key] = val
docs: Rename level names.
  
          :param mapping: Mapping level names to new ones
          :type mapping: dict