code: def get_design_document(self, ddoc_id):
          
          ddoc = DesignDocument(self, ddoc_id)
          try:
              ddoc.fetch()
          except HTTPError as error:
              if error.response.status_code != 404:
                  raise
  
          return ddoc
docs: Retrieves a design document.  If a design document exists remotely
          then that content is wrapped in a DesignDocument object and returned
          to the caller.  Otherwise a "shell" DesignDocument object is returned.
  
          :param str ddoc_id: Design document id
  
          :returns: A DesignDocument instance, if exists remotely then it will
              be populated accordingly