<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_file(self):
 """ did inventory come from a file? """

        if not isinstance(self.host_list, basestring):
            return False
        return os.path.exists(self.host_list)