def METHOD_NAME(
        self,
        doctype: str,
        data: Dict):
    """Creates a new document of the given doctype.
    See https://frappeframework.com/docs/v14/user/en/api/rest#listing-documents
    Args:
        doctype (str): Type of the document to create.
        data (Dict): Document object.
    """
    post_response = requests.post(
        f'{self.base_url}/resource/{doctype}',
        json=data,
        headers=self.headers)
    if not post_response.ok:
        if 400 <= post_response.status_code < 600:
            raise requests.HTTPError(f'{post_response.reason}: {post_response.text}', response=post_response)
    return post_response.json()['data']