MCPcopy Create free account
hub / github.com/DeepGraphLearning/graphvite / get_any_instantiation

Function get_any_instantiation

python/graphvite/helper.py:55–59  ·  view source on GitHub ↗
(module, name)

Source from the content-addressed store, hash-verified

53
54
55def get_any_instantiation(module, name):
56 pattern = re.compile("%s(?:_[^_]+)+" % name)
57 for full_name in module.__dict__:
58 if pattern.match(full_name):
59 return getattr(module, full_name)
60
61
62def get_instantiation_info(module, name, template_keys):

Callers 1

make_helper_classFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected