in packages/typespec-python/scripts/eng/regenerate.ts [239:246]
function getEmitterOption(spec: string, flavor: string): Record<string, string>[] {
const specDir = spec.includes("azure") ? AZURE_HTTP_SPECS : HTTP_SPECS;
const relativeSpec = toPosix(relative(specDir, spec));
const key = relativeSpec.includes("resiliency/srv-driven/old.tsp") ? relativeSpec : dirname(relativeSpec);
const emitter_options = EMITTER_OPTIONS[key] || (flavor === "azure" ? AZURE_EMITTER_OPTIONS[key] : [{}]) || [{}];
const result = Array.isArray(emitter_options) ? emitter_options : [emitter_options];
return result;
}