code: def test_text_notebooks_can_be_trusted(
      percent_file, tmpdir, no_jupytext_version_number
  ):
      cm = TextFileContentsManager()
      root, file = os.path.split(percent_file)
      py_file = str(tmpdir.join(file))
      shutil.copy(percent_file, py_file)
  
      cm.root_dir = str(tmpdir)
      model = cm.get(file)
      model["type"] == "notebook"
      cm.save(model, file)
  
      # Unsign notebook
      nb = model["content"]
      for cell in nb.cells:
          cell.metadata.pop("trusted", True)
  
      cm.notary.unsign(nb)
  
      # Trust and reload
      cm.trust_notebook(file)
  
      model = cm.get(file)
      for cell in model["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 5 for calling a global function with example usage: test_text_notebooks_can_be_trusted(percent_file, tmpdir, no_jupytext_version_number) without return types