def _parse_resource_name(name):
  """Extracts project id, location, dataset id etc from the resource name."""
  parts = name.split('/')
  return parts[1], parts[3], parts[5], parts[7], '{}/{}'.format(
      parts[9], parts[10])