(rl_tuner, stat_dict)
return stat_dict
Updates stat dict if rl_tuner.composition has unique extrema notes.

  Args:
    rl_tuner: An RLTuner object.
    stat_dict: A dictionary containing fields for statistics about
      compositions.
  Returns:
    A dictionary of composition statistics with 'notes_in_repeated_motif'
    field updated.
Updates stat dict if rl_tuner.composition has unique extrema notes.
Updates stat dict if rl_tuner . composition has unique extrema notes .
def add_high_low_unique_stats(rl_tuner, stat_dict):
  """Updates stat dict if rl_tuner.composition has unique extrema notes.

  Args:
    rl_tuner: An RLTuner object.
    stat_dict: A dictionary containing fields for statistics about
      compositions.
  Returns:
    A dictionary of composition statistics with 'notes_in_repeated_motif'
    field updated.
  """
  if rl_tuner.detect_high_unique(rl_tuner.composition):
    stat_dict['num_high_unique'] += 1
  if rl_tuner.detect_low_unique(rl_tuner.composition):
    stat_dict['num_low_unique'] += 1

  return stat_dict
def add_high_low_unique_stats ( rl_tuner , stat_dict ) : if rl_tuner . detect_high_unique ( rl_tuner . composition ) : stat_dict [ 'num_high_unique' ] += 1 if rl_tuner . detect_low_unique ( rl_tuner . composition ) : stat_dict [ 'num_low_unique' ] += 1 return stat_dict