def _MakeTestTensor(shape, prefix=b'v'):
  """Constructs a string tensor with the specified shape, for testing."""
  if not shape:
    return prefix
  return [
      _MakeTestTensor(shape[1:], b'%s%s' % (prefix, ('%s' % i).encode('ascii')))
      for i in range(shape[0])
  ]