def _get_element_by_id(self, url, key, eclass, id):
elements = self._get_elements(url, key, eclass, id=id)<EOL>if not elements:<EOL><INDENT>raise ValueError("<STR_LIT>".format(id))<EOL><DEDENT>if len(elements) == <NUM_LIT:1>:<EOL><INDENT>return elements[<NUM_LIT:0>]<EOL><DEDENT>raise ValueError("<STR_LIT>".format(id))<EOL>
Get a single element matching an `id`

        Args:
            url(str): url of children.
            key(str): key in the returned JSON.
            eclass(subclass type of :py:class:`_ResourceElement`): element class to create instances of.
            id(str): return resources whose `id` property matches the given `id`

        Returns:
            _ResourceElement: Element of type `eclass` matching the given `id`

        Raises:
            ValueError: No resource matches given `id` or multiple resources matching given `id`