def is_storage_local(storage):
 try:
  storage.path('test')
 except NotImplementedError:
  return False
 return True

def is_storage_local ( storage ) : try : storage . path ( 'test' ) except NotImplementedError : return False return True
check to see if a file storage is local .