def select_header_accept(self, accepts):
if not accepts:<EOL><INDENT>return<EOL><DEDENT>accepts = list(map(lambda x: x.lower(), accepts))<EOL>if '<STR_LIT:application/json>' in accepts:<EOL><INDENT>return '<STR_LIT:application/json>'<EOL><DEDENT>else:<EOL><INDENT>return '<STR_LIT:U+002CU+0020>'.join(accepts)<EOL><DEDENT>
Returns `Accept` based on an array of accepts provided.

:param accepts: List of headers.
:return: Accept (e.g. application/json).