def create_issue(self, title, body=github.GithubObject.NotSet, assignee=github.GithubObject.NotSet, milestone=github.GithubObject.NotSet, labels=github.GithubObject.NotSet, assignees=github.GithubObject.NotSet):
assert isinstance(title, (str, unicode)), title<EOL>assert body is github.GithubObject.NotSet or isinstance(body, (str, unicode)), body<EOL>assert assignee is github.GithubObject.NotSet or isinstance(assignee, github.NamedUser.NamedUser) or isinstance(assignee, (str, unicode)), assignee<EOL>assert assignees is github.GithubObject.NotSet or all(isinstance(element, github.NamedUser.NamedUser) or isinstance(element, (str, unicode)) for element in assignees), assignees<EOL>assert milestone is github.GithubObject.NotSet or isinstance(milestone, github.Milestone.Milestone), milestone<EOL>assert labels is github.GithubObject.NotSet or all(isinstance(element, github.Label.Label) or isinstance(element, (str, unicode)) for element in labels), labels<EOL>post_parameters = {<EOL>"<STR_LIT:title>": title,<EOL>}<EOL>if body is not github.GithubObject.NotSet:<EOL><INDENT>post_parameters["<STR_LIT:body>"] = body<EOL><DEDENT>if assignee is not github.GithubObject.NotSet:<EOL><INDENT>if isinstance(assignee, (str, unicode)):<EOL><INDENT>post_parameters["<STR_LIT>"] = assignee<EOL><DEDENT>else:<EOL><INDENT>post_parameters["<STR_LIT>"] = assignee._identity<EOL><DEDENT><DEDENT>if assignees is not github.GithubObject.NotSet:<EOL><INDENT>post_parameters["<STR_LIT>"] = [element._identity if isinstance(element, github.NamedUser.NamedUser) else element for element in assignees]<EOL><DEDENT>if milestone is not github.GithubObject.NotSet:<EOL><INDENT>post_parameters["<STR_LIT>"] = milestone._identity<EOL><DEDENT>if labels is not github.GithubObject.NotSet:<EOL><INDENT>post_parameters["<STR_LIT>"] = [element.name if isinstance(element, github.Label.Label) else element for element in labels]<EOL><DEDENT>headers, data = self._requester.requestJsonAndCheck(<EOL>"<STR_LIT:POST>",<EOL>self.url + "<STR_LIT>",<EOL>input=post_parameters<EOL>)<EOL>return github.Issue.Issue(self._requester, headers, data, completed=True)<EOL>
:calls: `POST /repos/:owner/:repo/issues <http://developer.github.com/v3/issues>`_
:param title: string
:param body: string
:param assignee: string or :class:`github.NamedUser.NamedUser`
:param assignees: list (of string or :class:`github.NamedUser.NamedUser`)
:param milestone: :class:`github.Milestone.Milestone`
:param labels: list of :class:`github.Label.Label`
:rtype: :class:`github.Issue.Issue`