code: def register_after_fork(obj, func):
      _afterfork_registry[
          (next(_afterfork_counter), id(obj), func)
      ] = obj
  
imports: import itertools
  import logging
  import multiprocessing.util
  import os
  import re
  import sys
  import socket
  import threading
  import weakref
  import psutil
label_desc: Use image node_id 1 for calling a global function with example usage: register_after_fork(obj, func) without return types