class_docstr: Base semiring class.
  
  Based on description in:
  
  * Semiring parsing :cite:`goodman1999semiring`
docstr: Additional *ssize* first dimension needed.
docstr_tok: ["Additional","*","ssize","*","first","dimension","needed","."]
code: def size(cls):
      "Additional *ssize* first dimension needed."
      return 1
  
imports: import torch
label_desc: Use image node_id 2 for calling the Semiring obj's underlying member method code with example usage: obj.size(cls) and returns: int