code: def test_get_type_hints_str(name: type, tup: TypeTup) -> None:
      """Test `typing.get_type_hints` with string-representation of types."""
      typ_str, typ = f"npt.{name}", tup.typ
  
      # Explicitly set `__annotations__` in order to circumvent the
      # stringification performed by `from __future__ import annotations`
      def func(a):
          pass
  
      func.__annotations__ = {"a": typ_str, "return": None}
  
      out = get_type_hints(func)
      ref = {"a": typ, "return": type(None)}
      assert out == ref
  
file_path: catboost/contrib/python/numpy/py3/numpy/typing/tests/test_runtime.py
imports: from __future__ import annotations
  from typing import get_type_hints, Union, NamedTuple, get_args, get_origin, Any
  import pytest
  import numpy
  import numpy.typing
  import numpy._typing
label_desc: Use image node_id 4 for calling a global function with example usage: test_get_type_hints_str(name, tup) without return types