def create_namespace(self, path, description=u'',
                         createParentIfNeeded=True, verbose=False):
        fullPath = self.abs_tag_path(path)    # now it starts with /user
        parts = fullPath.split(u'/')[1:]      # remove '' before leading '/'
        if parts[-1] == u'':
            parts = parts      # ignore a trailing slash, if there was one
        if len(parts) < 2:     # minimum is 'user' and 'namespace'
            raise EmptyNamespaceError(u'Attempt to create user namespace %s'
                                           % fullPath)
        parent = u'/'.join(parts[:-1])
        containingNS = u'/namespaces/%s' % parent
        subNS = parts[-1]
        body = json.dumps({u'name': subNS,
                           u'description': description or u''})
        status, result = self.call(u'POST', containingNS, body)
        if status == STATUS.CREATED:
            id = result[u'id']
            if verbose:
                self.Print(u'Created namespace /%s/%s with ID %s' % (parent,
                                                                    subNS, id))
            return id
        elif status == STATUS.NOT_FOUND:    # parent namespace doesn't exist
            if not createParentIfNeeded:
                return status
            if len(parts) > 2:
                self.create_namespace(u'/' + parent, verbose=verbose)
                return self.create_namespace(path, description,
                                              verbose=verbose)  # try again
            else:
                user = parts[-1]
                raise CannotWriteUserError(u'User %s not found or namespace '
                                           u'/%s not writable' % (user, user))
        else:
            if verbose:
                self.Print(u'Failed to create namespace %s (%d)' % (fullPath,
                                                                    status))
            return status
Creates the namespace specified by path using the description
dataset/ETHPy150Open njr0/fish/fish/fishlib.py/Fluidinfo.create_namespace