<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_baserate(self):
 """Helper function to populate the base rate"""

        rateslist = self.rates['list']['resources']
        for rate in rateslist:
            rateobj = rate['resource']['fields']
            if rateobj['symbol'].partition('=')[0] == rateobj['name']:
                return rateobj['name']
        raise RuntimeError("%s: baserate not found" % self.name)