code: def _parse_ostriz(ostriz_data):
      
      if not ostriz_data:
          raise NothingToDoException("No data to import")
  
      results = []
      found_build = None
      last_finish_time = [0]
      for test_path, test_data in six.iteritems(ostriz_data):
          curr_build = test_data.get("build")
          if not curr_build:
              continue
  
          # set `found_build` from first record where it's present
          if not found_build:
              found_build = curr_build
  
          # make sure we are collecting data for the same build
          if found_build != curr_build:
              continue
  
          if not test_data.get("statuses"):
              continue
  
          _append_record(test_data, results, test_path)
          _comp_finish_time(test_data, last_finish_time)
  
      if last_finish_time[0]:
          logger.info("Last result finished at %s", last_finish_time[0])
  
      testrun_id = _get_testrun_id(found_build)
      return xunit_exporter.ImportedData(results=results, testrun=testrun_id)
docs: Reads the content of the input JSON and returns testcases results.