code: def mag_scale_rel(value):
      
      value = value.strip()
      if value not in SCALEREL:
          raise ValueError(
              "'%s' is not a recognized magnitude-scale relationship" % value)
      return value
docs: :param value:
          name of a Magnitude-Scale relationship in hazardlib
      :returns:
          the corresponding hazardlib object