text: """
  Requires:
      None
  
  Provides:
      instance     -> family ("review")
  """
  
  import os
  
  import pyblish.api
  
  from openpype.lib import get_subset_name_with_asset_doc
  
  
  class CollectReview(pyblish.api.ContextPlugin):
      """Gather the active document as review instance.
  
      Triggers once even if no 'image' is published as by defaults it creates
      flatten image from a workfile.
      """
  
      label = "Collect Review"
      label = "Review"
      hosts = ["photoshop"]
      order = pyblish.api.CollectorOrder + 0.1
  
      def process(self, context):
          family = "review"
          subset = get_subset_name_with_asset_doc(
              family,
              context.data.get("variant", ''),
              context.data["anatomyData"]["task"]["name"],
              context.data["assetEntity"],
              context.data["anatomyData"]["project"]["name"],
              host_name=context.data["hostName"]
          )
  
          instance = context.create_instance(subset)
          instance.data.update({
              "subset": subset,
              "label": subset,
              "name": subset,
              "family": family,
              "families": [],
              "representations": [],
              "asset": os.environ["AVALON_ASSET"]
          })
  