<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def is_path_like(obj, attr=('name', 'is_file', 'is_dir', 'iterdir')):
 """test if object is pathlib.Path like"""

    for a in attr:
        if not hasattr(obj, a):
            return False
    return True