docs: def get_rupture(oqparam):
      """
      Read the `rupture_model` file and by filter the site collection
  
      :param oqparam:
          an :class:`openquake.commonlib.oqvalidation.OqParam` instance
      :returns:
          an hazardlib rupture
      """
      rup_model = oqparam.inputs['rupture_model']
      [rup_node] = nrml.read(rup_model)
      conv = sourceconverter.RuptureConverter(
          oqparam.rupture_mesh_spacing, oqparam.complex_fault_mesh_spacing)
      rup = conv.convert_node(rup_node)
      rup.tectonic_region_type = '*'  # there is not TRT for scenario ruptures
      rup.serial = oqparam.random_seed
      return rup