def METHOD_NAME(client, params, results, num_results):
    """Assert that the endpoint returns the expected responses for various parameters."""
    from legal_api.version import __version__
    from registry_schemas import __version__ as registry_schemas_version
    rv = client.get('/api/v1/nrTypeMap' + params)
    if results:
        # function to sort JSON items
        def sortFunction(value):
            return value['nrTypeCd'] + value['entityTypeCd'] + value['requestActionCd']
        assert rv.status_code == 200
        assert sorted(rv.json, key=sortFunction) == sorted(results, key=sortFunction)
    elif num_results > 0:
        assert rv.status_code == 200
        assert len(rv.json) == num_results
    else:
        assert rv.status_code == 404