code: def test_display_parse(monkeypatch, dispvar):
      """Check that when $DISPLAY is defined, the display is correctly parsed"""
      config._display = None
      config._config.remove_option("execution", "display_variable")
      monkeypatch.setenv("DISPLAY", dispvar)
      assert config.get_display() == ":12"
      # Test that it was correctly cached
      assert config.get_display() == ":12"
  
file_path: nipype/nipype/utils/tests/test_config.py
imports: import os
  import sys
  import pytest
  from nipype import config
  from unittest.mock import MagicMock
label_desc: Use image node_id 1 for calling a global function with example usage: test_display_parse(monkeypatch, dispvar) without return types