code: def _determine_doubled_obj_type(self):
          
  
          if isclass(self.doubled_obj) or ismodule(self.doubled_obj):
              return self.doubled_obj
  
          return self.doubled_obj.__class__
docs: Returns the type (class) of the target object.
  
          :return: The type (class) of the target.
          :rtype: type, classobj