def METHOD_NAME(srcset: str) -> List[str]:
    """Extract URLs from a srcset attribute"""
    srcset = srcset.strip()
    if not srcset:
        return []
    urls = []
    for source in srcset.split(','):
        stripped_source = source.strip()
        if ' ' in stripped_source:
            url, _ = re.split(r'\ +', source.strip(), maxsplit=1)
        else:
            url = stripped_source
        urls.append(url)
    return urls