code: def _set_tight_x(axis, index):
      try:
          axis.set_xlim(index[0], index[-1])
      except ValueError:
          pass
  
file_path: arch/doc/source/images/hero.py
imports: import warnings
  import matplotlib.font_manager
  from matplotlib.pyplot import figure
  import numpy
  import seaborn
  from arch import arch_model
  import arch.data.sp500
label_desc: Use image node_id 1 for calling a global function with example usage: _set_tight_x(axis, index) without return types