code: def is_lp_layout_model_config_any_format(config: str) -> bool:
      if not config.startswith(LAYOUT_PARSER_MODEL_PREFIX):
          return False
      if len(
          config[len(LAYOUT_PARSER_MODEL_PREFIX) :].split("/")
      ) not in [1, 2, 3, 4]:
          return False
      return True
  
file_path: layout-parser/src/layoutparser/models/model_config.py
imports: from dataclasses import dataclass
label_desc: Use image node_id 1 for calling a global function with example usage: is_lp_layout_model_config_any_format(config) and returns: True, False, False