code: def from_config(cls, config):
      return cls(**config)
  
file_path: ClassyVision/test/hooks_classy_hook_test.py
imports: import copy
  import unittest
  from classy_vision.hooks import build_hook, build_hooks, ClassyHook, register_hook
label_desc: Use image node_id 2 for calling the TestHookNew obj's underlying member method code with example usage: obj.from_config(cls, config) and returns: cls