code: def test_notebook_metadata_kaggle(mocked_module):
      os.environ["KAGGLE_KERNEL_RUN_TYPE"] = "test"
      kaggle = mocked_module("kaggle_session")
      kaggle_client = mock.MagicMock()
      kaggle_client.get_exportable_ipynb.return_value = {
          "source": json.dumps({"metadata": {}, "cells": []})
      }
      kaggle.UserSessionClient.return_value = kaggle_client
      with mock.patch.object(
          wandb.jupyter,
          "notebook_metadata_from_jupyter_servers_and_kernel_id",
          lambda *args, **kwargs: {},
      ):
          meta = wandb.jupyter.notebook_metadata(False)
          assert meta == {
              "root": "/kaggle/working",
              "path": "kaggle.ipynb",
              "name": "kaggle.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 8 for calling a global function with example usage: test_notebook_metadata_kaggle(mocked_module) without return types