code: def fixed_legend_filter_sort(self, fixed_legend_filter_sort):
          allowed_values = ["TOP", "BOTTOM"]
          if fixed_legend_filter_sort not in allowed_values:
              raise ValueError(
                  "Invalid value for `fixed_legend_filter_sort` ({0}), must be one of {1}"
                  .format(fixed_legend_filter_sort, allowed_values)
              )
          self._fixed_legend_filter_sort = fixed_legend_filter_sort