code: def read_galaxy_amqp_config(galaxy_config, base_dir):
      
      galaxy_config = add_full_path(galaxy_config, base_dir)
      config = six.moves.configparser.ConfigParser()
      config.read(galaxy_config)
      amqp_config = {}
      for option in config.options("galaxy_amqp"):
          amqp_config[option] = config.get("galaxy_amqp", option)
      return amqp_config
docs: Read connection information on the RabbitMQ server from Galaxy config.