code: def is_expected_path(text: str) -> bool:
      """
      Check if any dots appear outside of curly braces, if any.
      This is assuming there are no nested curly braces.
      """
      in_braces = False
      for c in text:
          if c == "{":
              in_braces = True
          elif c == "}":
              in_braces = False
          elif c == "." and not in_braces:
              return False
      return True
  
imports: import json
  import logging
  import sys
  import typing
  from dataclasses import dataclass, field
  import typing_extensions
label_desc: Use image node_id 5 for calling a global function with example usage: is_expected_path(text) and returns: True, False