parameters: (name)
return_statement: return ['/'] + ['/'+'/'.join(splits[:i]) for i in range(1, len(splits))]
docstring: utility to determine namespaces of a name
      @raises ValueError
      @raises TypeError
docstring_summary: utility to determine namespaces of a name
docstring_tokens: utility to determine namespaces of a name
function: def namespaces_of(name):
      """
      utility to determine namespaces of a name
      @raises ValueError
      @raises TypeError
      """
      if name is None: 
          raise ValueError('name')
      try:
          if not isinstance(name, basestring):
              raise TypeError('name')
      except NameError:
          if not isinstance(name, str):
              raise TypeError('name')
      if not name:
          return ['/']
  
      splits = [x for x in name.split('/') if x]
      return ['/'] + ['/'+'/'.join(splits[:i]) for i in range(1, len(splits))]
function_tokens: def namespaces_of ( name ) : if name is None : raise ValueError ( 'name' ) try : if not isinstance ( name , basestring ) : raise TypeError ( 'name' ) except NameError : if not isinstance ( name , str ) : raise TypeError ( 'name' ) if not name : return [ '/' ] splits = [ x for x in name . split ( '/' ) if x ] return [ '/' ] + [ '/' + '/' . join ( splits [ : i ] ) for i in range ( 1 , len ( splits ) ) ]