code: def add_on_import(name, func):
      PostImportHookPatching._init_hook()
      if (
          name not in PostImportHookPatching._post_import_hooks
          or func not in PostImportHookPatching._post_import_hooks[name]
      ):
          PostImportHookPatching._post_import_hooks[name].append(func)
  
file_path: clearml/clearml/binding/import_bind.py
imports: import sys
  from collections import defaultdict
  import six
label_desc: Use image node_id 4 for calling the PostImportHookPatching obj's underlying member method code with example usage: obj.add_on_import(name, func) without return types