code: def _new(self, dx_hash, media_type=None, **kwargs):
          
  
          if media_type is not None:
              dx_hash["media"] = media_type
  
          resp = dxpy.api.file_new(dx_hash, **kwargs)
          self.set_ids(resp["id"], dx_hash["project"])
docs: :param dx_hash: Standard hash populated in :func:`dxpy.bindings.DXDataObject.new()` containing attributes common to all data object classes.
          :type dx_hash: dict
          :param media_type: Internet Media Type
          :type media_type: string
  
          Creates a new remote file with media type *media_type*, if given.