<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_sequence_repeat(self, name, nrep, input_name, output_name):
 """ Add sequence repeat layer to the model. Parameters name: str The name of this layer. nrep: int Number of repetitions of the input blob along the sequence axis. input_name: str The input blob name of this layer. output_name: str The output blob name of this layer. See Also -------- add_upsample, add_elementwise """

        spec = self.spec
        nn_spec = self.nn_spec
        spec_layer = nn_spec.layers.add()
        spec_layer.name = name
        spec_layer.input.append(input_name)
        spec_layer.output.append(output_name)
        spec_layer_params = spec_layer.sequenceRepeat
        spec_layer_params.nRepetitions = nrep