def METHOD_NAME(
    tested_func, mocked_func, other_args, called_args, called_kwargs, mocker
):
    path_controller = "openbb_terminal.portfolio.portfolio_controller"
    # MOCK portlist
    mocker.patch(
        target="os.listdir",
        return_value=[],
    )
    if mocked_func:
        mock = mocker.Mock()
        mocker.patch(
            target=f"{path_controller}.{mocked_func}",
            new=mock,
        )
        controller = portfolio_controller.PortfolioController(queue=None)
        getattr(controller, tested_func)(other_args)
        if called_args or called_kwargs:
            mock.assert_called_once_with(*called_args, **called_kwargs)
        else:
            mock.assert_called_once()
    else:
        controller = portfolio_controller.PortfolioController(queue=None)
        getattr(controller, tested_func)(other_args)