code: def strip_whitespace(string):
      return string.replace("\n", "").replace(" ", "")
  
imports: import json
  import unittest
  from unittest import mock
  from mkdocs.config.config_options import ValidationError
  from mkdocs.contrib import search
  from mkdocs.contrib.search import search_index
  from mkdocs.structure.files import File
  from mkdocs.structure.pages import Page
  from mkdocs.structure.toc import get_toc
  from mkdocs.tests.base import dedent, get_markdown_toc, load_config
label_desc: Use image node_id 1 for calling a global function with example usage: strip_whitespace(string) and returns: string