def METHOD_NAME(monkeypatch):
    import napari.view_layers
    viewer_mock = MagicMock(napari.Viewer)
    monkeypatch.setattr(napari.view_layers, 'Viewer', viewer_mock)
    napari.view_path(
        path='some/path',
        title='my viewer',
        ndisplay=3,
        name='img name',
        scale=(1, 2, 3),
    )
    assert viewer_mock.mock_calls == [
        call(title='my viewer'),
        call().open(path='some/path', name='img name', scale=(1, 2, 3)),
    ]