code: def _is_deserialized(cls, cls_target, obj):
          
  
          if cls_target is None:
              return True
  
          if cls_target in {list, dict}:
              return True
  
          if cls._is_bytes_type(cls_target):
              return True
  
          if obj is None:
              return True
  
          if type(obj) in {list, cls_target}:
              return True
  
          return False
docs: :type cls_target: type
          :type obj: int|str|bool|float|bytes|unicode|list|dict|object
  
          :rtype: bool