code: def _update_specs(self, instance, specs):
          
  
          if specs is None:
              return
  
          # N.B. we copy the records here, otherwise the spec will be written to
          #      the attached specification of this AR
          rr = {item["keyword"]: item.copy()
                for item in instance.getResultsRange()}
          for spec in specs:
              keyword = spec.get("keyword")
              if keyword in rr:
                  # overwrite the instance specification only, if the specific
                  # analysis spec has min/max values set
                  if all([spec.get("min"), spec.get("max")]):
                      rr[keyword].update(spec)
                  else:
                      rr[keyword] = spec
              else:
                  rr[keyword] = spec
          return instance.setResultsRange(rr.values())
docs: Update AR specifications
  
          :param instance: Analysis Request
          :param specs: List of Specification Records