code: def check_input(self, obj):
          
          if isinstance(obj, str):
              return
          if isinstance(obj, unicode):
              return
          raise Exception("Unsupported class: " + self._input.__class__.__name__)
docs: Performs checks on the input object. Raises an exception if unsupported.
  
          :param obj: the object to check
          :type obj: object