code: def _prepare_name(component: "Component") -> str:
      return str(component.name.split(".")[-1])
  
file_path: pytorch-lightning/src/lightning/app/structures/dict.py
imports: import typing
  from lightning.app.utilities.app_helpers import _LightningAppRef, _set_child_name
label_desc: Use image node_id 1 for calling a global function with example usage: _prepare_name(component) and returns: str