### Summary

I'm seeing some breakage in collections caused (very likely) by #73703:
1. `AttributeError: 'AnsibleModule' object has no attribute '_check_type_dict'` (community.general, infoblox.nios_modules);
2. `ImportError: cannot import name 'handle_aliases'` (from `ansible.module_utils.common.parameters`) (community.crypto, community.sops).

While 1. could be considered 'own fault' because it is a private API, 2. looks like a bug, since that's a break in a public interface.

### Issue Type

Bug Report

### Component Name

core

### Ansible Version

devel

### Configuration

.

### OS / Environment

.

### Steps to Reproduce

.

### Expected Results

.

### Actual Results

.
"""Returns the callable used to validate a wanted type and the type name.
    :arg wanted: String or callable. If a string, get the corresponding
        validation function from DEFAULT_TYPE_VALIDATORS. If callable,
        get the name of the custom callable and return that for the type_checker.
    :returns: Tuple of callable function or None, and a string that is the name
        of the wanted type.
    """
    
    if not callable(wanted):
        if wanted is None:
            
            wanted = 'str'
        type_checker = DEFAULT_TYPE_VALIDATORS.get(wanted)
    
    else:
        type_checker = wanted
        wanted = getattr(wanted, '__name__', to_native(type(wanted)))
    return type_checker, wanted
def _get_legal_inputs(argument_spec, parameters, aliases=None):