code: def _kebab_case_to_pascal_case(name: str) -> str:
      return "".join(word.capitalize() for word in name.split("-"))
  
file_path: pytorch/tools/onnx/gen_diagnostics.py
imports: import argparse
  import os
  import string
  import subprocess
  import textwrap
  from typing import Any, Mapping, Sequence
  import yaml
  from torchgen import utils
  from torchgen.yaml_utils import YamlLoader
label_desc: Use image node_id 2 for calling a global function with example usage: _kebab_case_to_pascal_case(name) and returns: str