code: def __call__(self, n):
      if n == self.n:
          return self
      else:
          return self.__class__(self.weekday, n)
  
imports: import datetime
  import calendar
label_desc: Use image node_id 2 for calling the weekday obj's underlying member method code with example usage: obj.__call__(n) and returns: self, self