code: def get_inactive_status(brain_or_object, default="active"):
      
      if is_brain(brain_or_object):
          return getattr(brain_or_object, "inactive_state", default)
      workflows = get_workflows_for(brain_or_object)
      if 'bika_inactive_workflow' not in workflows:
          return default
      return get_workflow_status_of(brain_or_object, 'inactive_state')
docs: Get the `cancellation_state` of an objct
  
      :param brain_or_object: A single catalog brain or content object
      :type brain_or_object: ATContentType/DexterityContentType/CatalogBrain
      :returns: Value of the review_status variable
      :rtype: String