code: def score(self, potentials, parts):
      terms, rules, roots = potentials[:3]
      m_term, m_rule, m_root = parts[:3]
      b = m_term.shape[0]
      return (
          m_term.mul(terms).view(b, -1).sum(-1)
          + m_rule.mul(rules).view(b, -1).sum(-1)
          + m_root.mul(roots).view(b, -1).sum(-1)
      )
  
file_path: pytorch-struct/torch_struct/cky.py
imports: import torch
  from .helpers import _Struct, Chart
label_desc: Use image node_id 3 for calling the CKY obj's underlying member method code with example usage: obj.score(potentials, parts) and returns: unknown