code: def setup_partitioning(portal):
      
      logger.info("Setting up the enhanced partitioning system")
  
      # Add "Create partition" transition
      add_create_partition_transition(portal)
  
      # Add getAncestorsUIDs index in analyses catalog
      add_partitioning_indexes(portal)
  
      # Adds metadata columns for partitioning
      add_partitioning_metadata(portal)
  
      # Setup default ID formatting for partitions
      set_partitions_id_formatting(portal)
docs: Setups the enhanced partitioning system