<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def instance_of(self, kls: Any) -> bool: """ Return true if the current object is an instance of passed type. # Arguments kls: The class. # Returns: bool: * Return true if the current object is an instance of passed type. * False else. """

        if not kls:
            raise ValueError
        return isinstance(self, kls)