code: def node_to_evenly_discretized(node):
      
      if not all([node.attrib["minMag"], node.attrib["binWidth"],
                  node.nodes[0].text]):
          return None
      # Text to float
      rates = [float(x) for x in node.nodes[0].text.split()]
      return mfd.evenly_discretized.EvenlyDiscretizedMFD(
          float(node.attrib["minMag"]),
          float(node.attrib["binWidth"]),
          rates)
docs: Parses the evenly discretized mfd node to an instance of the
      :class: openquake.hazardlib.mfd.evenly_discretized.EvenlyDiscretizedMFD,
      or to None if not all parameters are available