def METHOD_NAME(text_with_urls):
    """
    Checks the health and status of the URLs included in `text_with_urls`
    Args:
       text_with_urls (str, required): The text that contains the URLs where the check needs to be performed
    Returns:
        (dict) An object with the validity of the check and the instance/results
    """
    def status_code_from_request(url):
        headers = get_headers()
        # timeout = 10 seconds, to allow for slow but not invalid connections
        return requests.get(url, headers=headers, timeout=10).status_code
    results = []
    validity = True
    # extract URLs from text
    extractor = URLExtract()
    urls = extractor.find_urls(text_with_urls)
    urls.extend(UrlValidator._extract_http_texts(text_with_urls))
    # remove dots at the end (The URLExtract library catches URLs, but sometimes appends a '.' at the end)
    # remove duplicated urls
    urls = set(url[:-1] if url.endswith(".") else url for url in urls)
    value = ", ".join(urls)
    # check that URL returns a valid response
    for url in urls:
        if not url.startswith("http"):
            url = f"http://{url}"
        try:
            response_code = status_code_from_request(url)
            if response_code == 200:
                if url.startswith("http://"):
                    secure_url = url.replace("http://", "https://")
                    if status_code_from_request(secure_url) == 200:
                        result = {
                            "url": url,
                            "error": "The URL is secure. Please use 'https' instead of 'http'.",
                        }
                else:
                    continue
            else:
                result = {"url": url, "error": f"Status code {response_code}"}
        except requests.ConnectionError:
            result = {"url": url, "error": "The URL does not exist on Internet."}
        except:
            result = {"url": url, "error": "Some unknown error occurred."}
        results.append(result)
    if results:
        validity = False
        value = results
    return {"valid": validity, "value": value}