code: def check_output(self, outp: t.Any):
      if isinstance(self.expected, t.Callable):
          result = self.expected(outp)
          if result is not None:
              assert (
                  result
              ), f"Output from model call (args={', '.join(map(str, self.input_args))}, kwargs={self.input_kwargs}) is not expected (output={outp})"
      else:
          check = outp == self.expected
          if isinstance(check, np.ndarray):
              check = check.all()
          assert (
              check
          ), f"Output from model call (args={', '.join(map(str, self.input_args))}, kwargs={self.input_kwargs}) is not expected (output={outp}, expected={self.expected})"
  
imports: from __future__ import annotations
  import typing
  import attr
  import numpy
label_desc: Use image node_id 1 for calling the FrameworkTestModelInput obj's underlying member method code with example usage: obj.check_output(outp) without return types