code: def get_dashboard(context, location):
      
      if location == 'index':
          return get_index_dashboard(context)
      elif location == 'app_index':
          return get_app_index_dashboard(context)
      raise ValueError('Invalid dashboard location: "%s"' % location)
docs: Returns the dashboard that match the given ``location``
      (index or app_index).