code: def is_local(self):
          
          from ambry.orm.exc import NotFoundError
          try:
              if self.local_datafile.exists:
                  return True
          except NotFoundError:
              pass
  
          return False
docs: Return true is the partition file is local