def create_token_review_with_http_info(self, body, **kwargs):
all_params = ['<STR_LIT:body>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>']<EOL>all_params.append('<STR_LIT>')<EOL>all_params.append('<STR_LIT>')<EOL>all_params.append('<STR_LIT>')<EOL>all_params.append('<STR_LIT>')<EOL>params = locals()<EOL>for key, val in iteritems(params['<STR_LIT>']):<EOL><INDENT>if key not in all_params:<EOL><INDENT>raise TypeError(<EOL>"<STR_LIT>"<EOL>"<STR_LIT>" % key<EOL>)<EOL><DEDENT>params[key] = val<EOL><DEDENT>del params['<STR_LIT>']<EOL>if ('<STR_LIT:body>' not in params) or (params['<STR_LIT:body>'] is None):<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>collection_formats = {}<EOL>path_params = {}<EOL>query_params = []<EOL>if '<STR_LIT>' in params:<EOL><INDENT>query_params.append(('<STR_LIT>', params['<STR_LIT>']))<EOL><DEDENT>if '<STR_LIT>' in params:<EOL><INDENT>query_params.append(('<STR_LIT>', params['<STR_LIT>']))<EOL><DEDENT>if '<STR_LIT>' in params:<EOL><INDENT>query_params.append(('<STR_LIT>', params['<STR_LIT>']))<EOL><DEDENT>header_params = {}<EOL>form_params = []<EOL>local_var_files = {}<EOL>body_params = None<EOL>if '<STR_LIT:body>' in params:<EOL><INDENT>body_params = params['<STR_LIT:body>']<EOL><DEDENT>header_params['<STR_LIT>'] = self.api_client.select_header_accept(['<STR_LIT:application/json>', '<STR_LIT>', '<STR_LIT>'])<EOL>header_params['<STR_LIT:Content-Type>'] = self.api_client.select_header_content_type(['<STR_LIT>'])<EOL>auth_settings = ['<STR_LIT>']<EOL>return self.api_client.call_api('<STR_LIT>', '<STR_LIT:POST>',<EOL>path_params,<EOL>query_params,<EOL>header_params,<EOL>body=body_params,<EOL>post_params=form_params,<EOL>files=local_var_files,<EOL>response_type='<STR_LIT>',<EOL>auth_settings=auth_settings,<EOL>async_req=params.get('<STR_LIT>'),<EOL>_return_http_data_only=params.get('<STR_LIT>'),<EOL>_preload_content=params.get('<STR_LIT>', True),<EOL>_request_timeout=params.get('<STR_LIT>'),<EOL>collection_formats=collection_formats)<EOL>
create a TokenReview
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_token_review_with_http_info(body, async_req=True)
>>> result = thread.get()

:param async_req bool
:param V1beta1TokenReview body: (required)
:param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
:param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
:param str pretty: If 'true', then the output is pretty printed.
:return: V1beta1TokenReview
         If the method is called asynchronously,
         returns the request thread.