code: def isproject(path):
      
  
      try:
          if os.path.basename(path)[0] in (".", "_"):
              return False
          if not os.path.isdir(path):
              return False
          if not any(fname in os.listdir(path)
                     for fname in ("templates.yaml",
                                   "inventory.yaml")):
              return False
      except:
          return False
  
      return True
docs: Return whether or not `path` is a project
  
      Arguments:
          path (str): Absolute path