'Returns |ASN.1| type component by ASN.1 tag.
Parameters
tagSet : :py:class:`~pyasn1.type.tag.TagSet`
Object representing ASN.1 tags to identify one of
|ASN.1| object component
Returns
: :py:class:`~pyasn1.type.base.PyAsn1Item`
a pyasn1 object'

def getComponentByType(self, tagSet, innerFlag=False):

    component = self.getComponentByPosition(self._componentType.getPositionByType(tagSet))
    if (innerFlag and isinstance(component, Set)):
        return component.getComponent(innerFlag=True)
    else:
        return component
