code: def getComponentByName(self, name, default=noValue, instantiate=True):
          
          if self._componentTypeLen:
              idx = self.componentType.getPositionByName(name)
          else:
              try:
                  idx = self._dynamicNames.getPositionByName(name)
  
              except KeyError:
                  raise error.PyAsn1Error('Name %s not found' % (name,))
  
          return self.getComponentByPosition(idx, default=default, instantiate=instantiate)
docs: 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
  
          Keyword Args
          ------------
          default: :class:`object`
              If set and requested component is a schema object, return the `default`
              object instead of the requested component.
  
          instantiate: :class:`bool`
              If `True` (default), inner component will be automatically instantiated.
              If 'False' either existing component or the `noValue` object will be
              returned.
  
          Returns
          -------
          : :py:class:`~pyasn1.type.base.PyAsn1Item`
              Instantiate |ASN.1| component type or return existing component value