docstr: Sets and updates expectation function
  
  Parameters
  ----------
  expect : function
      Expectation function, takes an AbstractTest (self) as parameter
      see expect.py for details
docstr_tok: ["Sets","and","updates","expectation","function","Parameters","--","--","--","--","--","expect",":","function","Expectation","function",",","takes","an","AbstractTest","(","self",")","as","parameter","see","expect.py","for","details"]
code: def set_expect(self, expect):
      """Sets and updates expectation function
  
      Parameters
      ----------
      expect : function
          Expectation function, takes an AbstractTest (self) as parameter
          see expect.py for details
      """
      self.expect = expect
      self.update_expect()
  
imports: from abc import ABC, abstractmethod
  import dill
  from munch import Munch
  import numpy
  import inspect
  from .expect import iter_with_optional, Expect
  from .viewer.test_summarizer import TestSummarizer
label_desc: Use image node_id 6 for calling the AbstractTest obj's underlying member method code with example usage: obj.set_expect(expect) without return types