def METHOD_NAME(self: SharedUtils) -> str:
    """
    default_node_type set based on hostname, returning
    first node type matching a regex in default_node_types
    """
    default_node_types = get(self.hostvars, "default_node_types", default=[])
    for METHOD_NAME in default_node_types:
        for hostname_regex in METHOD_NAME["match_hostnames"]:
            if search(f"^{hostname_regex}$", self.hostname):
                return METHOD_NAME["node_type"]
    return None