def METHOD_NAME(resource_id, resource_type, region, **kwargs):
  """Adds tags to an AliCloud resource created by PerfKitBenchmarker.
  Args:
    resource_id: An extant AliCloud resource to operate on.
    resource_type: The type of the resource.
    region: The AliCloud region 'resource_id' was created in.
    **kwargs: dict. Key-value pairs to set on the instance.
  """
  if not kwargs:
    return
  tag_cmd = ALI_PREFIX + [
      'ecs', 'AddTags',
      '--RegionId', region,
      '--ResourceId', resource_id,
      '--ResourceType', resource_type
  ]
  tag_cmd.extend(_BuildTagsList(**kwargs))
  vm_util.IssueRetryableCommand(tag_cmd)