def METHOD_NAME(self):
    """Test repeat function repeats correctly"""
    qc = QuantumCircuit(2)
    qc.append(StatePreparation("01").repeat(2), [0, 1])
    self.assertEqual(qc.decompose().count_ops()["state_preparation"], 2)