def METHOD_NAME(self, community, default_random_walk_max_peers=20):
    community.bootstrappers.append(self.make_bootstrapper())
    # Value of `target_peers` must not be equal to the value of `max_peers` for the community.
    # This causes a deformed network topology and makes it harder for peers to connect to others.
    # More information: https://github.com/Tribler/py-ipv8/issues/979#issuecomment-896643760
    #
    # Then:
    # random_walk_max_peers should be less than community.max_peers:
    random_walk_max_peers = min(default_random_walk_max_peers, community.max_peers - 10)
    # random_walk_max_peers should be greater than 0
    random_walk_max_peers = max(0, random_walk_max_peers)
    self.ipv8.add_strategy(community, RandomWalk(community), random_walk_max_peers)
    if self.session.config.ipv8.statistics and not self.session.config.gui_test_mode:
        self.ipv8.endpoint.enable_community_statistics(community.get_prefix(), True)