def METHOD_NAME(cls, analysis_id, property_view_ids):
    """Creates AnalysisPropertyViews from provided PropertyView IDs.
    The method returns a tuple, the first value being a dictionary of the created
    AnalysisPropertyView IDs with the key as the original property_view_id,
    the second value being a list of BatchCreateErrors.
    Intended to be used when initializing an analysis.
    :param analysis_id: int
    :param property_view_ids: list[int]
    :returns: tuple(list[int], list[BatchCreateError])
    """
    analysis = Analysis.objects.get(id=analysis_id)
    with transaction.atomic():
        property_view_ids = set(property_view_ids)
        property_views = PropertyView.objects.filter(
            id__in=property_view_ids,
            property__organization_id=analysis.organization_id,
        )
        missing_property_views = property_view_ids - set(property_views.values_list('id', flat=True))
        failures = [
            BatchCreateError(view_id, 'No such PropertyView')
            for view_id in missing_property_views
        ]
        analysis_property_view_ids = {}
        for property_view in property_views:
            try:
                # clone the property state
                property_state = property_view.state
                property_state.pk = None
                property_state.save()
                analysis_property_view = AnalysisPropertyView(
                    analysis_id=analysis_id,
                    property=property_view.property,
                    cycle=property_view.cycle,
                    property_state=property_state
                )
                analysis_property_view.full_clean()
                analysis_property_view.save()
                analysis_property_view_ids[property_view.id] = analysis_property_view.id
            except ValidationError as e:
                failures.append(BatchCreateError(
                    property_view.id,
                    f'Validation of new AnalysisPropertyView failed:\n{e}'
                ))
    return analysis_property_view_ids, failures