def METHOD_NAME(obj, *args, **kwargs):
    """
    Reproduce the logic for report_id creation.
    Usually this type of thing could be with factory boy through lazy_attributes,
    but this would also require letting factory boy handling pk creation
    instead of deferring this responsibility to the database.
    """
    obj.report_id = obj.report_id or obj.pk  # noqa: W0201