'Returns |ASN.1| type component by index.
Equivalent to Python sequence subscription operation (e.g. `[]`).
Parameters
idx : :class:`int`
Component index (zero-based). Must either refer to an existing
component or (if *componentType* is set) new ASN.1 type object gets
instantiated.
Returns
: :py:class:`~pyasn1.type.base.PyAsn1Item`
a PyASN1 object'

def getComponentByPosition(self, idx):

    try:
        componentValue = self._componentValues[idx]
    except IndexError:
        componentValue = None
    if (componentValue is None):
        self.setComponentByPosition(idx)
    return self._componentValues[idx]
