code: def _check_uncomment_line(line: str, ext: str, expected: str) -> None:
      if isinstance(expected, str):
          output = instantiate.uncomment_line(line, ext)
          np.testing.assert_equal(output, expected)
      else:
          np.testing.assert_raises(
              expected, instantiate.uncomment_line, line, ext
          )
  
file_path: nevergrad/nevergrad/parametrization/test_instantiate.py
imports: import sys
  import tempfile
  import typing
  from pathlib import Path
  import numpy
  from nevergrad.common import testing
  from .None import instantiate
  from .instantiate import LINETOKEN
  from .instantiate import Placeholder
label_desc: Use image node_id 2 for calling a global function with example usage: _check_uncomment_line(line, ext, expected) without return types