def METHOD_NAME(self, mock_workspace_operation: WorkspaceOperations, mocker: MockFixture) -> None:
    mock_workspace_operation.begin_diagnose(name="random_name")
    mock_workspace_operation._operation.begin_diagnose.assert_called_once()
    mocker.patch("azure.ai.ml._restclient.v2022_10_01.models.DiagnoseRequestProperties", return_value=None)