code: def select_id_by_name(query):
      """Do a case-insensitive regex match on author name, returns TLG id."""
      id_author = get_id_author()
      comp = regex.compile(
          r"{}".format(query.casefold()), flags=regex.VERSION1
      )
      matches = []
      for _id, author in id_author.items():
          match = comp.findall(author.casefold())
          if match:
              matches.append((_id, author))
      return matches
  
imports: import json
  import os
  import regex
  from cltk.corpora.grc.tlg.author_date import AUTHOR_DATE
  from cltk.corpora.grc.tlg.author_epithet import AUTHOR_EPITHET
  from cltk.corpora.grc.tlg.author_female import AUTHOR_FEMALE
  from cltk.corpora.grc.tlg.author_geo import AUTHOR_GEO
  from cltk.corpora.grc.tlg.id_author import ID_AUTHOR
  from cltk.corpora.grc.tlg.index_lists import INDEX_LIST
  from cltk.corpora.grc.tlg.work_numbers import WORK_NUMBERS
label_desc: Use image node_id 12 for calling a global function with example usage: select_id_by_name(query) and returns: matches