code: def test_notebook_metadata_colab(mocked_module):
      colab = mocked_module("google.colab")
      colab._message.blocking_request.return_value = {
          "ipynb": {"metadata": {"colab": {"name": "koalab.ipynb"}}}
      }
      print(wandb.jupyter.logger)
      with mock.patch.object(
          wandb.jupyter,
          "notebook_metadata_from_jupyter_servers_and_kernel_id",
          lambda *args, **kwargs: {
              "path": "colab.ipynb",
              "root": "/consent",
              "name": "colab.ipynb",
          },
      ):
          print(
              wandb.jupyter.notebook_metadata_from_jupyter_servers_and_kernel_id()
          )
          meta = wandb.jupyter.notebook_metadata(False)
          assert meta == {
              "root": "/content",
              "path": "colab.ipynb",
              "name": "colab.ipynb",
          }
  
imports: import json
  import os
  import pathlib
  import platform
  import subprocess
  import sys
  from unittest import mock
  import pytest
  import wandb
  import wandb.jupyter
  import wandb.sdk.lib.apikey
  import wandb.util
label_desc: Use image node_id 7 for calling a global function with example usage: test_notebook_metadata_colab(mocked_module) without return types