in glean_parser/javascript.py [0:0]
def import_path(obj_type: str) -> str:
"""
Returns the import path of the given object inside the @mozilla/glean package.
"""
if obj_type == "ping":
import_path = "ping"
else:
if obj_type.startswith("labeled_"):
obj_type = obj_type[8:]
import_path = "metrics/" + obj_type
return import_path