code: def pshard_stats_for_version(version):
      
      pshard_stats_metrics = dict(PRIMARY_SHARD_METRICS)
      if version >= [1, 0, 0]:
          pshard_stats_metrics.update(PRIMARY_SHARD_METRICS_POST_1_0)
  
      return pshard_stats_metrics
docs: Get the proper set of pshard metrics for the specified ES version