class_docstr: Manager for backend model objects
docstr: Wrap design text with a dictionary.
  
  In the backend, the design is a dictionary with a 'design' key in it.
  For the client, it is a text. This function wraps a design string with
  the proper dictionary.
  
  :param design: If it is a dictionary, it mast have a 'design' key in it.
      In that case, return design as-is.
      If it is a string, return the dictionary {'design': design}.
      If it is None (or any False value), return the dictionary {'design': ''}
  
  :return: A proper design dictionary according to design parameter.
docstr_tok: ["Wrap","design","text","with","a","dictionary",".","In","the","backend",",","the","design","is","a","dictionary","with","a","'design","'","key","in","it",".","For","the","client",",","it","is","a","text",".","This","function","wraps","a","design","string","with","the","proper","dictionary",".",":","param","design",":","If","it","is","a","dictionary",",","it","mast","have","a","'design","'","key","in","it",".","In","that","case",",","return","design","as-is",".","If","it","is","a","string",",","return","the","dictionary","{","'design","'",":","design","}",".","If","it","is","None","(","or","any","False","value",")",",","return","the","dictionary","{","'design","'",":","``","}",":","return",":","A","proper","design","dictionary","according","to","design","parameter","."]
code: def _wrap_design(design):
      """
      Wrap design text with a dictionary.
  
      In the backend, the design is a dictionary with a 'design' key in it.
      For the client, it is a text. This function wraps a design string with
      the proper dictionary.
  
      :param design: If it is a dictionary, it mast have a 'design' key in it.
          In that case, return design as-is.
          If it is a string, return the dictionary {'design': design}.
          If it is None (or any False value), return the dictionary {'design': ''}
  
      :return: A proper design dictionary according to design parameter.
      """
      if isinstance(design, dict):
          if "design" not in design:
              raise ValueError(
                  "design dictionary must have 'design' key in it"
              )
  
          return design
  
      return {"design": design if design else ""}
  
imports: from collections import namedtuple
  from functools import partial
  import six
  from pathlib2 import Path
  from .base import IdObjectBase
  from .util import make_message
  from ..backend_api import Session
  from ..backend_api.services import models, tasks
  from ..storage import StorageManager
  from ..storage.helper import StorageHelper
  from ..utilities.async_manager import AsyncManagerMixin
label_desc: Use image node_id 9 for calling the Model obj's underlying member method code with example usage: obj._wrap_design(design) and returns: dict, design