Returns a sharepoint list item based on id

def get_item_by_id(self, item_id):
        """ Returns a sharepoint list item based on id"""

        url = self.build_url(self._endpoints.get('get_item_by_id').format(item_id=item_id))

        response = self.con.get(url)

        if not response:
            return []

        data = response.json()

        return self.list_item_constructor(parent=self, **{self._cloud_data_key: data})