code: def ns(symbol):
          '''generates a namespace x::y::z statement from a symbol'''
          if symbol.type and symbol.type.is_primitive:
              return ''
          return '{0}::'.format('::'.join(symbol.module.name_parts)f ns(symbol):
          '''generates a namespace x::y::z statement from a symbol'''
          if symbol.type and symbol.type.is_primitive:
              return ''
          return '{0}::'.format('::'.join(symbol.module.name_parts))
docs: generates a namespace x::y::z statement from a symbol