'Returns |ASN.1| type component by name.
Equivalent to Python :class:`dict` subscription operation (e.g. `[]`).
Parameters
name : :class:`str`
|ASN.1| type component name
Returns
: :py:class:`~pyasn1.type.base.PyAsn1Item`
Instantiate |ASN.1| component type or return existing component value'

def getComponentByName(self, name):

    return self.getComponentByPosition(self._componentType.getPositionByName(name))
