def METHOD_NAME(*args, **kwargs):
    data = kwargs["data"]
    mock_result = Mock()
    if "screen_name" in data:
        if data["screen_name"] == "mhl20,struan":
            mock_result.json.return_value = [
                {"id": 1234, "screen_name": "mhl20"},
                {"id": 5678, "screen_name": "struan"},
            ]
            return mock_result
        if data["screen_name"] == "symroe":
            mock_result.json.return_value = [
                {"id": 9012, "screen_name": "symroe"}
            ]
            return mock_result
        if data["screen_name"] == "onlynonexistent":
            mock_result.json.return_value = {
                "errors": [
                    {
                        "code": 17,
                        "message": "No user matches for specified terms.",
                    }
                ]
            }
            return mock_result
    elif "user_id" in data:
        if data["user_id"] == "42":
            mock_result.json.return_value = [
                {"id": 42, "screen_name": "FooBarBazQuux"}
            ]
            return mock_result
        if data["user_id"] == "13984716923847632":
            mock_result.json.return_value = {
                "errors": [
                    {
                        "code": 17,
                        "message": "No user matches for specified terms.",
                    }
                ]
            }
            return mock_result
    raise Exception("No Twitter API stub for {} {}".format(args, kwargs))