code: def __init__(ctx):
      # XXX: subclass
      ctx.matrix = type("matrix", (_matrix,), {})
      ctx.matrix.ctx = ctx
      ctx.matrix.convert = ctx.convert
  
imports: from ..libmp.backend import xrange
  import warnings
label_desc: Use image node_id 1 to create a new MatrixMethods object from inherited base classes: object with example: obj = MatrixMethods(ctx)