<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_tuning(self):
 """Return a StringTuning object. If an instrument is set and has a tuning it will be returned. Otherwise the track's one will be used. """

        if self.instrument and self.instrument.tuning:
            return self.instrument.tuning
        return self.tuning