def is_task_object(a):
 return (isinstance(a, Task) and a.use_task_objects)

def is_task_object ( a ) : return ( isinstance ( a , Task ) and a . use_task_objects )
determine if the provided value is a task object .