code: def getElementByName(self, beamline, name):
          
          try:
              assert beamline.upper() in self.kws_bl
          except AssertionError:
              print('%s is not a defined beamline.' % beamline)
              return ''
  
          try:
              assert name.lower() in self.getFullBeamline(beamline, extend=True)
              orderedLattice_list = self.orderLattice(beamline)
              retlist = [val for idx, val in enumerate(orderedLattice_list) if val[0] == name.lower()]
              return retlist
  
          except AssertionError:
              print('%s is not in %s.' % (name, beamline))
              return ''
docs: return element list by literal name in beamline
              each element is tuple like (name, type, order)
              :param beamline: beamline name
              :param name: element literal name