docs: def _get_urls(self, version, cluster_stats):
          """
          Compute the URLs we need to hit depending on the running ES version
          """
          pshard_stats_url = "/_stats"
          health_url = "/_cluster/health"
  
          if version >= [0, 90, 10]:
              pending_tasks_url = "/_cluster/pending_tasks"
              stats_url = "/_nodes/stats" if cluster_stats else "/_nodes/_local/stats"
              if version < [5, 0, 0]:
                  # version 5 errors out if the `all` parameter is set
                  stats_url += "?all=true"
          else:
              # legacy
              pending_tasks_url = None
              stats_url = "/_cluster/nodes/stats?all=true" if cluster_stats else "/_cluster/nodes/_local/stats?all=true"
  
          return health_url, stats_url, pshard_stats_url, pending_tasks_url