(nid: str)
| 241 | also needs the same recorded parameter count. |
| 242 | """ |
| 243 | def _meta(nid: str) -> dict: |
| 244 | meta = (node_by_id.get(nid) or {}).get("metadata") |
| 245 | return meta if isinstance(meta, dict) else {} |
| 246 | |
| 247 | if len(declared) == 1 and len(candidates) == 1: |
| 248 | source, target = next(iter(declared)), next(iter(candidates)) |