def METHOD_NAME(
    self,
    locator: Locator,
    timeout: Optional[float] = None,
) -> None:
    """Set anchor to an element specified by the locator.
    All following keywords using locators will use this element
    as a root element. Specific use case could be setting
    anchor to TableControl element and then getting column data
    belonging to that TableControl element.
    To release anchor call ``Clear Anchor`` keyword.
    :param locator: string locator or Control element
    :param timeout: timeout in seconds for element lookup (default 10.0)
    Example:
    .. code-block:: robotframework
        Set Anchor  type:Table name:Orders depth:16
        FOR  ${row}  IN RANGE  200
            ${number}=  Get Value   name:number row ${row}
            Exit For Loop If   $number == ${EMPTY}
            ${sum}=  Get Value   name:sum row ${row}
            Log   Order number:${number} has sum:{sum}
        END
        Clear Anchor
    """
    self.ctx.anchor_element = self.ctx.get_element(locator, timeout=timeout)