code: def reload(self):
          
          try:
              data = self._api.get(self.href, append_base=False).json()
              resource = File(api=self._api, **data)
          except Exception:
              try:
                  data = self._api.get(
                      self._URL['get'].format(id=self.id)).json()
                  resource = File(api=self._api, **data)
              except Exception:
                  raise SbgError('Resource can not be refreshed!')
  
          self._data = resource._data
          self._dirty = resource._dirty
          self._old = copy.deepcopy(self._data.data)
  
          # If file.metadata = value was executed
          # file object will have attribute _method='PUT', which tells us
          # to force overwrite of metadata on the server. This is metadata
          # specific. Once we reload the resource we delete the attribute
          # _method from the instance.
          try:
              delattr(self, '_method')
          except AttributeError:
              pass
docs: Refreshes the file with the data from the server.