code: def test_syntax_padding():
      syntax = Syntax("x = 1", lexer="python", padding=(1, 3))
      console = Console(
          width=20,
          file=io.StringIO(),
          color_system="truecolor",
          legacy_windows=False,
          record=True,
      )
      console.print(syntax)
      output = console.export_text()
      assert (
          output
          == "                    \n   x = 1            \n                    \n"
      )
  
imports: import io
  import os
  import sys
  import tempfile
  import pkg_resources
  import pytest
  from pygments.lexers import PythonLexer
  from rich.measure import Measurement
  from rich.panel import Panel
  from rich.style import Style
  from rich.syntax import ANSISyntaxTheme, Color, Console, PygmentsSyntaxTheme, Syntax, _SyntaxHighlightRange
  from .render import render
label_desc: Use image node_id 22 for calling a global function with example usage: test_syntax_padding() without return types