def __init__(self, sourceURL, mimeType=None):
        # Url of the download.
        self._sourceURL = None
        # MIME Type for the resource
        self._mimeType = None

        if mimeType is None:
            if sourceURL is None:
                raise RuntimeError('Source must be non-null')
            self._sourceURL = sourceURL
        else:
            ExternalResource.__init__(self, sourceURL)
            self._mimeType = mimeType
Creates a new download component for downloading directly from
dataset/ETHPy150Open rwl/muntjac/muntjac/terminal/external_resource.py/ExternalResource.__init__