code: def test_py_notebooks_are_trusted(python_file):
      cm = TextFileContentsManager()
      root, file = os.path.split(python_file)
      cm.root_dir = root
      nb = cm.get(file)
      for cell in nb["content"].cells:
          assert cell.metadata.get("trusted", True)
  
file_path: jupytext/tests/functional/others/test_trust_notebook.py
imports: import os
  import shutil
  import pytest
  from nbformat.v4.nbbase import new_code_cell, new_output
  from jupytext.compare import compare_notebooks
  from jupytext.contentsmanager import TextFileContentsManager
label_desc: Use image node_id 1 for calling a global function with example usage: test_py_notebooks_are_trusted(python_file) without return types