code: def test_issue4629(self):
      longopts, shortopts = getopt.getopt(["--help="], "", ["help="])
      self.assertEqual(longopts, [("--help", "")])
      longopts, shortopts = getopt.getopt(["--help=x"], "", ["help="])
      self.assertEqual(longopts, [("--help", "x")])
      self.assertRaises(
          getopt.GetoptError, getopt.getopt, ["--help="], "", ["help"]
      )
  
file_path: cpython/Lib/test/test_getopt.py
imports: from test.support.os_helper import EnvironmentVarGuard
  import doctest
  import unittest
  import getopt
label_desc: Use image node_id 9 for calling the GetoptTests obj's underlying member method code with example usage: obj.test_issue4629() without return types