code: def get_review_history_for(brain_or_object):
      
      workflow_history = api.get_object(brain_or_object).workflow_history
      if not workflow_history:
          # No review_history for this object!. This object was probably
          # migrated to 1.3.0 before review_history was handled in this
          # upgrade step.
          # https://github.com/senaite/senaite.core/issues/1270
          return create_initial_review_history(brain_or_object)
  
      review_history = []
      for wf_id, histories in workflow_history.items():
          for history in histories:
              hist = history.copy()
              if "inactive_state" in history:
                  hist["review_state"] = history["inactive_state"]
              elif "cancellation_state" in history:
                  hist["review_state"] = history["cancellation_state"]
              review_history.append(hist)
  
      # Sort by time (from oldest to newest)
      return sorted(review_history, key=lambda st: st.get("time"))
docs: Returns the review history list for the given object. If there is no
      review history for the object, it returns a default review history