code: def marathon_on_marathon(name='marathon-user'):
      
  
      toml_config_o = config.get_config()
      dcos_url = config.get_config_val('core.dcos_url', toml_config_o)
      service_name = 'service/{}/'.format(name)
      marathon_url = urllib.parse.urljoin(dcos_url, service_name)
      config.set_val('marathon.url', marathon_url)
  
      try:
          yield
      finally:
          # return config to previous state
          config.save(toml_config_o)
docs: Context manager for altering the marathon client for MoM
      :param name: service name of MoM to use
      :type name: str