code: def make_syntax() -> Syntax:
      code = """\
  def ratio_resolve(total: int, edges: List[Edge]) -> List[int]:
      sizes = [(edge.size or None) for edge in edges]
  
      # While any edges haven't been calculated
      while any(size is None for size in sizes):
          # Get flexible edges and index to map these back on to sizes list
          flexible_edges = [
              (index, edge)
              for index, (size, edge) in enumerate(zip(sizes, edges))
              if size is None
          ]
          # Remaining space in total
          remaining = total - sum(size or 0 for size in sizes)
          if remaining <= 0:
              # No room for flexible edges
              sizes[:] = [(size or 0) for size in sizes]
              break
          # Calculate number of characters in a ratio portion
          portion = remaining / sum((edge.ratio or 1) for _, edge in flexible_edges)
  
          # If any edges will be less than their minimum, replace size with the minimum
          for index, edge in flexible_edges:
              if portion * edge.ratio <= edge.minimum_size:
                  sizes[index] = edge.minimum_size
                  break
          else:
              # Distribute flexible space and compensate for rounding error
              # Since edge sizes can only be integers we need to add the remainder
              # to the following line
              _modf = modf
              remainder = 0.0
              for index, edge in flexible_edges:
                  remainder, size = _modf(portion * edge.ratio + remainder)
                  sizes[index] = int(size)
              break
      # Sizes now contains integers only
      return cast(List[int], sizes)
      """
      syntax = Syntax(code, "python", line_numbers=True)
      return syntax
  
file_path: rich/examples/fullscreen.py
imports: from datetime import datetime
  from rich import box
  from rich.align import Align
  from rich.console import Console, Group
  from rich.layout import Layout
  from rich.panel import Panel
  from rich.progress import BarColumn, Progress, SpinnerColumn, TextColumn
  from rich.syntax import Syntax
  from rich.table import Table
  from time import sleep
  from rich.live import Live
label_desc: Use image node_id 3 for calling a global function with example usage: make_syntax() and returns: syntax