def entry(self, entry_id, query=None):
if query is None:<EOL><INDENT>query = {}<EOL><DEDENT>self._normalize_select(query)<EOL>try:<EOL><INDENT>query.update({'<STR_LIT>': entry_id})<EOL>return self._get(<EOL>self.environment_url('<STR_LIT>'),<EOL>query<EOL>)[<NUM_LIT:0>]<EOL><DEDENT>except IndexError:<EOL><INDENT>raise EntryNotFoundError(<EOL>"<STR_LIT>".format(entry_id)<EOL>)<EOL><DEDENT>
Fetches an Entry by ID.

        API Reference: https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/entries/entry/get-a-single-entry

        :param entry_id: The ID of the target Entry.
        :param query: (optional) Dict with API options.
        :return: :class:`Entry <contentful.entry.Entry>` object.
        :rtype: contentful.entry.Entry

        Usage:
            >>> nyancat_entry = client.entry('nyancat')
            <Entry[cat] id='nyancat'>