code: def get_registry_records_by_keyword(keyword=None):
      
      portal_reg = ploneapi.portal.get_tool(name="portal_registry")
      found_registers = {}
      for record in portal_reg.records:
          if keyword is None:
              found_registers[record] = api.get_registry_record(record)
          elif keyword.lower() in record.lower():
              found_registers[record] = api.get_registry_record(record)
      return found_registers
docs: Get all the registry records (names and values) whose name
       contains the specified keyword or, if keyword is None, return
       all registry items
  
      :param keyword: The keyword that has to be contained in the record name
      :type keyword: str or None
      :returns: Dictionary mapping the names of the found records to its values