code: def validate_notebook_version(notebook_version):
      """
      Validate a notebook created for a specific version of StellarGraph.
  
      Args:
          notebook_version(str): the library version that the notebook was created for
      """
      version_stellargraph = _parse(__version__)
      version_notebook = _parse(notebook_version)
      help_url = (
          "https://github.com/stellargraph/stellargraph/issues/1172"
      )
  
      def _format_for_error(m):
          return f"{m} Please see: <{help_url}>."
  
      def _format_for_html(m):
          return f'<div class="alert alert-block alert-danger">{m} Please see: <a href="{help_url}">{help_url}</a>.</div>'
  
      if version_stellargraph < version_notebook:
          message = f"This notebook requires StellarGraph version {notebook_version}, but an older version {__version__} is installed."
          _display_in_notebook(_format_for_html(message))
          raise ValueError(_format_for_error(message)) from None
      elif version_stellargraph > version_notebook:
          message = f"This notebook is designed for an older StellarGraph version {notebook_version} and may not function correctly with the newer installed version {__version__}."
          _display_in_notebook(_format_for_html(message))
          warnings.warn(
              _format_for_error(message),
              DeprecationWarning,
              stacklevel=2,
          )
  
file_path: stellargraph/stellargraph/utils/version_validation.py
imports: import warnings
  import re
  from ..None import __version__
label_desc: Use image node_id 3 for calling a global function with example usage: validate_notebook_version(notebook_version) and returns: m, str, help_url, str, str, m, str, help_url, str, help_url, str