code: def v1_tag_list(tags, tag=''):
      '''List all direct children tags of the given parent.
  
      If no parent is specified, then list all top-level tags.
  
      The JSON returned for ``/dossier/v1/tags/list/foo/bar``
      might look like this:
  
      .. code-block:: python
  
          {
              'children': [
                  {'name': 'baz', 'parent': 'bar', 'tag': 'foo/bar/baz'},
              ]
          }
      '''
      tag = tag.decode('utf-8').strip()
      return {'children': tags.list(tag)f v1_tag_list(tags, tag=''):
      '''List all direct children tags of the given parent.
  
      If no parent is specified, then list all top-level tags.
  
      The JSON returned for ``/dossier/v1/tags/list/foo/bar``
      might look like this:
  
      .. code-block:: python
  
          {
              'children': [
                  {'name': 'baz', 'parent': 'bar', 'tag': 'foo/bar/baz'},
              ]
          }
      '''
      tag = tag.decode('utf-8').strip()
      return {'children': tags.list(tag)}
docs: List all direct children tags of the given parent.
  
      If no parent is specified, then list all top-level tags.
  
      The JSON returned for ``/dossier/v1/tags/list/foo/bar``
      might look like this:
  
      .. code-block:: python
  
          {
              'children': [
                  {'name': 'baz', 'parent': 'bar', 'tag': 'foo/bar/baz'},
              ]
          }