def METHOD_NAME(self, *args, page_id, commit, **options):
    r"""
    Try to run the command
    :param \*args: The supplied arguments
    :type \*args: list
    :param page_id: The page ID (node) of a broken tree
    :type page_id: int
    :param commit: Whether changes should be written to the database
    :type commit: bool
    :param \**options: The supplied keyword options
    :type \**options: dict
    :raises ~django.core.management.base.CommandError: When the input is invalid
    """
    try:
        root_node = Page.objects.get(id=page_id)
    except Page.DoesNotExist as e:
        raise CommandError(f'The page with id "{page_id}" does not exist.') from e
    # Traversing to root node
    while root_node.parent:
        root_node = root_node.parent
    action = "Fixing" if commit else "Detecting problems in"
    self.print_info(f"{action} tree with id {root_node.tree_id}...")
    self.pages_seen = []
    self.calculate_left_right_values(root_node, 1, commit)
    self.check_for_orphans(root_node.tree_id)