def user_media_url(what):
    default = '%s%s/' % (settings.MEDIA_URL, what)
    key = "{0}_URL".format(what.upper().replace('-', '_'))
    return getattr(settings, key, default)
Set the state of the agent to the next state
dataset/ETHPy150Open mozilla/addons-server/src/olympia/amo/helpers.py/user_media_url--crossover with--dataset/ETHPy150Open projectmesa/mesa/examples/ColorPatches/color_cell.py/ColorCell.advance