code: def testcases_by_time(xmls):
      testcases = get_testcases(xmls)
      testcases.sort(
          reverse=True, key=lambda x: float(x.attrib["time"])
      )
      return testcases
  
label_desc: Use image node_id 1 for calling a global function with example usage: testcases_by_time(xmls) and returns: testcases