code: def add_identifier_for_config(config: str, identifier: str) -> str:
      return (
          config.rstrip("/").rstrip(f"/{identifier}") + f"/{identifier}"
      )
  
file_path: layout-parser/src/layoutparser/models/model_config.py
imports: from dataclasses import dataclass
label_desc: Use image node_id 2 for calling a global function with example usage: add_identifier_for_config(config, identifier) and returns: unknown