code: def test_azure_nb(self, mocker):
      mocker.patch("os.path.exists", return_value=True)
      mocker.patch("os.path.isfile", return_value=True)
      mocker.patch(
          "rai_core_flask.environments.azure_nb_environment."
          "AzureNBEnvironment.get_nbvm_config",
          return_value={
              "instance": "fakeaznbinstance",
              "domainsuffix": "fakedomainsuffix",
          },
      )
      service = FlaskHelper()
      assert isinstance(service.env, AzureNBEnvironment)
      assert service.with_credentials
  
file_path: responsible-ai-toolbox/rai_core_flask/tests/test_environment_detector.py
imports: import os
  import pytest
  from rai_core_flask import FlaskHelper
  from rai_core_flask.environments.azure_nb_environment import AzureNBEnvironment
  from rai_core_flask.environments.credentialed_vm_environment import CredentialedVMEnvironment
  from rai_core_flask.environments.databricks_environment import DATABRICKS_ENV_VAR, DatabricksEnvironment
  from rai_core_flask.environments.local_ipython_environment import LocalIPythonEnvironment
  from rai_core_flask.environments.public_vm_environment import PublicVMEnvironment
label_desc: Use image node_id 5 for calling the TestEnvironmentDetector obj's underlying member method code with example usage: obj.test_azure_nb(mocker) without return types