def METHOD_NAME(config) -> CURRENT_BASETOOL.ToolLocator:
    """
    Create an instance of ToolLocator with the standard behavior based on the given
    command-line options.
    """
    if config.tool_directory:
        return CURRENT_BASETOOL.ToolLocator(tool_directory=config.tool_directory)
    else:
        return CURRENT_BASETOOL.ToolLocator(use_path=True, use_current=True)