original_docstring: 
      A singleton created by using decorator
      :param cls: cls
      :return: instance
      
docstring: A singleton created by using decorator
docstring_tokens: A singleton created by using decorator
code: def singleton(cls):
      """
      A singleton created by using decorator
      :param cls: cls
      :return: instance
      """
      _instances = {}
  
      @wraps(cls)
      def instance(*args, **kw):
          if cls not in _instances:
              _instances[cls] = cls(*args, **kw)
          return _instances[cls]
  
      return instance
code_tokens: def singleton ( cls ) : _instances = { } @ wraps ( cls ) def instance ( * args , ** kw ) : if cls not in _instances : _instances [ cls ] = cls ( * args , ** kw ) return _instances [ cls ] return instance
short_docstring: A singleton created by using decorator
short_docstring_tokens: A singleton created by using decorator
comment: """
      A singleton created by using decorator
      :param cls: cls
      :return: instance
      """