code: def get_tag_value(resource, tag, utf_8=False):
          
  
          tags = {k.lower(): v for k, v in resource.get('tags', {}).items()}
          value = tags.get(tag, False)
  
          if value is not False:
              if utf_8:
                  value = value.encode('utf8').decode('utf8')
          return value
docs: Get the resource's tag value.