def METHOD_NAME(monkeypatch, item_count, error_code):
    movie_table = unittest.mock.MagicMock()
    movie_table.name = 'movie-test'
    movie_list = [(index, f'title-{index}') for index in range(item_count)]
    actor_table = unittest.mock.MagicMock()
    actor_table.name = 'actor-test'
    actor_list = [f'actor-{index}' for index in range(item_count)]
    test_data = {movie_table.name: movie_list, actor_table.name: actor_list}
    def mock_do_batch_get(batch_keys):
        if error_code is not None:
            raise ClientError({'Error': {'Code': error_code}}, 'test_op')
        assert len(batch_keys[movie_table.name]['Keys']) == len(movie_list)
        assert len(batch_keys[actor_table.name]['Keys']) == len(actor_list)
        return test_data
    monkeypatch.setattr(dynamo_batching, 'do_batch_get', mock_do_batch_get)
    if error_code is None:
        got_data = dynamo_batching.get_batch_data(
            movie_table, movie_list, actor_table, actor_list)
        assert got_data == test_data
    else:
        with pytest.raises(ClientError) as exc_info:
            dynamo_batching.get_batch_data(
                movie_table, movie_list, actor_table, actor_list)
        assert exc_info.value.response['Error']['Code'] == error_code