code: def _set_typenames(cls):
      # Get types visible from base module or package, but internal
      cls.types.update(get_all_types(cls.__base__, cls.__name__))
  
      log.debug("Implementations found: %s", sorted(cls.types.keys()))
  
imports: from __future__ import annotations
  import hashlib
  import logging
  import os
  import signal
  import sys
  from abc import ABCMeta
  from collections import defaultdict
  from contextlib import contextmanager
  from glob import glob
  from importlib import import_module
  from tempfile import NamedTemporaryFile
  from typing import Generic, TypeVar
label_desc: Use image node_id 6 for calling a global function with example usage: _set_typenames(cls) without return types