code: def resolve(self, ob):
      ob.clone_func(self.branch.batchmatmul.x)
      ob.clone_variable(self.branch.batchmatmul.w.inputs[0])
      if self.branch.add2 is not None:
          ob.clone_func(self.branch.add2.bias)
      func_name = ob.get_unique_name("MatmulAddToAffine")
      affine = nn.graph_def.ProtoFunction(
          None, "Affine", {"base_axis": 1}, func_name, ob.new_graph
      )
      x = self.branch.batchmatmul.x.outputs[0]
      w = self.branch.batchmatmul.w.inputs[0]
      affine.inputs = [x, w]
      if self.branch.add2:
          b = self.branch.add2.bias.inputs[0]
          affine.inputs.append(b)
      affine.outputs = self.branch.outputs
      for n in affine.outputs:
          ob.clone_variable(n)
      ob.new_graph.functions[func_name] = affine
  
imports: import nnabla
label_desc: Use image node_id 2 for calling the AffineResolver obj's underlying member method code with example usage: obj.resolve(ob) without return types