from typing import Dict
from typing import Any


def _generate_delete_response_with_errors(num_rows=1) -> Dict[str, Any]:
  """Generates a Content API delete response with errors.

  Args:
    num_rows: The number of rows to generate.

  Returns:
    A Content API response with errors (item not found).
  """
  response = {u'kind': u'content#productsCustomBatchResponse', u'entries': []}
  for batch_id in range(0, num_rows):
    response['entries'].append({
        'kind': 'content#productsCustomBatchResponseEntry',
        'batchId': batch_id,
        'errors': {
            'errors': [{
                'domain': 'global',
                'reason': 'notFound',
                'message': 'item not found'
            }],
            'code': 404,
            'message': 'item not found'
        }
    })

  return response