def get_by_user_id_and_role_with_user_id_with_role(self,role: str, user_id: str) -> GetByUserIdAndRoleWithUserIdWithRoleRequestBuilder:
        """
        Provides operations to call the getByUserIdAndRole method.
        param role: Usage: role='{role}'
        param user_id: Usage: userId='{userId}'
        Returns: GetByUserIdAndRoleWithUserIdWithRoleRequestBuilder
        """
        if role is None:
            raise TypeError("role cannot be null.")
        if user_id is None:
            raise TypeError("user_id cannot be null.")
        from .get_by_user_id_and_role_with_user_id_with_role.get_by_user_id_and_role_with_user_id_with_role_request_builder import GetByUserIdAndRoleWithUserIdWithRoleRequestBuilder

        return GetByUserIdAndRoleWithUserIdWithRoleRequestBuilder(self.request_adapter, self.path_parameters, role, user_id)

        Provides operations to call the getByUserIdAndRole method.
        param role: Usage: role='{role}'
        param user_id: Usage: userId='{userId}'
        Returns: GetByUserIdAndRoleWithUserIdWithRoleRequestBuilder
        
msgraph/generated/solutions/virtual_events/townhalls/townhalls_request_builder.py