def METHOD_NAME(self, fname):
    import urllib.parse
    import urllib.request
    import yaml
    try:
        data = dict()
        url = urllib.parse.urlparse(fname)
        if url.scheme is not None and len(url.scheme) > 0:
            with urllib.request.urlopen(fname) as f:
                data = yaml.load(f, Loader=yaml.SafeLoader)
        else:
            with open(fname, 'r') as f:
                data = yaml.load(f, Loader=yaml.SafeLoader)
        # common containers for options
        if 'verify_options' in data:
            data = data['verify_options']
        elif 'sea_options' in data:
            data = data['sea_options']
        elif 'sea_arguments' in data:
            data = data['sea_arguments']
        else:
            data = None
        if data is not None and isinstance(data, dict):
            return data
        if self._ignore_error:
            return None
        print("Error: no proper sea_options " +
              "dictionary found in {0}".format(fname))
        sys.exit(1)
        return None
    except Exception:
        if self._ignore_error:
            return None
        print("Error: could not parse", fname)
        sys.exit(1)