docs: def get_tags(name=None,
               instance_id=None,
               call=None,
               location=None,
               kwargs=None,
               resource_id=None):  # pylint: disable=W0613
      '''
      Retrieve tags for a resource. Normally a VM name or instance_id is passed
      in, but a resource_id may be passed instead. If both are passed in, the
      instance_id will be used.
  
      CLI Examples:
  
      .. code-block:: bash
  
          salt-cloud -a get_tags mymachine
          salt-cloud -a get_tags resource_id=vol-3267ab32
      '''
      if location is None:
          location = get_location()
  
      if instance_id is None:
          if resource_id is None:
              if name:
                  instance_id = _get_node(name)['instanceId']
              elif 'instance_id' in kwargs:
                  instance_id = kwargs['instance_id']
              elif 'resource_id' in kwargs:
                  instance_id = kwargs['resource_id']
          else:
              instance_id = resource_id
  
      params = {'Action': 'DescribeTags',
                'Filter.1.Name': 'resource-id',
                'Filter.1.Value': instance_id}
  
      return aws.query(params,
                       setname='tagSet',
                       location=location,
                       provider=get_provider(),
                       opts=__opts__,
                       sigver='4')