def remove_invalid_notes(self):
        # Simply call the child method on all instruments
        for instrument in self.instruments:
            instrument.remove_invalid_notes()
Build hooks env.
dataset/ETHPy150Open craffel/pretty-midi/pretty_midi/pretty_midi.py/PrettyMIDI.remove_invalid_notes--crossover with--dataset/ETHPy150Open ganeti/ganeti/lib/cmdlib/instance_operation.py/LUInstanceStartup.BuildHooksEnv