code: def test_nb4jupyter_metadata(validator_name):
      """Test that a notebook with a jupyter metadata passes validation"""
      set_validator(validator_name)
      with TestsBase.fopen("test4jupyter_metadata.ipynb", "r") as f:
          nb = read(f, as_version=4)
      validate(nb)
      assert isvalid(nb)
  
imports: from __future__ import annotations
  import json
  import os
  import re
  from copy import deepcopy
  import pytest
  from jsonschema import ValidationError
  import nbformat
  from nbformat import read
  from nbformat.json_compat import VALIDATORS
  from nbformat.validator import isvalid, iter_validate, validate
  from nbformat.warnings import DuplicateCellId, MissingIDFieldWarning
  from .base import TestsBase
label_desc: Use image node_id 14 for calling a global function with example usage: test_nb4jupyter_metadata(validator_name) without return types