code: def test_normcase(self):
      normcase = self.pathmodule.normcase
      # check that normcase() is idempotent
      for p in ["FoO/./BaR", b"FoO/./BaR"]:
          p = normcase(p)
          self.assertEqual(p, normcase(p))
  
      self.assertEqual(normcase(""), "")
      self.assertEqual(normcase(b""), b"")
  
      # check that normcase raises a TypeError for invalid types
      for path in (None, True, 0, 2.5, [], bytearray(b""), {"o", "o"}):
          self.assertRaises(TypeError, normcase, path)
  
imports: import genericpath
  import os
  import sys
  import unittest
  import warnings
  from test.support import is_emscripten
  from test.support import os_helper
  from test.support import warnings_helper
  from test.support.script_helper import assert_python_ok
  from test.support.os_helper import FakePath
label_desc: Use image node_id 1 for calling the CommonTest obj's underlying member method code with example usage: obj.test_normcase() without return types