code: def sample_rate(self):
          
  
          if self.sbrPresentFlag == 1:
              return self.extensionSamplingFrequency
          elif self.sbrPresentFlag == 0:
              return self.samplingFrequency
          else:
              # these are all types that support SBR
              aot_can_sbr = (1, 2, 3, 4, 6, 17, 19, 20, 22)
              if self.audioObjectType not in aot_can_sbr:
                  return self.samplingFrequency
              # there shouldn't be SBR for > 48KHz
              if self.samplingFrequency > 24000:
                  return self.samplingFrequency
              # either samplingFrequency or samplingFrequency * 2
              return 0
docs: 0 means unknown