tp: Ban RUN_METRIC in stdlib in presubmit

Bug:296397580
Change-Id: If4e4fd2440e192a2bb9e87136ca36b8f233ef8c9
diff --git a/tools/check_sql_modules.py b/tools/check_sql_modules.py
index 542d2a7..4ffa402 100755
--- a/tools/check_sql_modules.py
+++ b/tools/check_sql_modules.py
@@ -73,6 +73,14 @@
       modules.append((path, sql, parsed))
 
   for path, sql, parsed in modules:
+    lines = [l.strip() for l in sql.split('\n')]
+    for line in lines:
+      if line.startswith('--'):
+        continue
+      if 'RUN_METRIC' in line:
+        errors.append(f"RUN_METRIC is banned in standard library.\n"
+                      f"Offending file: {path}\n")
+
     errors += parsed.errors
     errors += check_banned_words(sql, path)
     errors += check_banned_create_table_as(sql,