code: def fill_intermediate_years(years, end_year=None):
      years.sort()
      start_year = int(years[0])
      if end_year is None:
          end_year = int(years[-1])
      filled_years = []
      for year in range(start_year, end_year + 1):
          filled_years.append(str(year))
      return filled_years
  
imports: import argparse
  import os
  import pathlib
  import re
  import subprocess
  from tqdm import tqdm
  from contextlib import contextmanager
label_desc: Use image node_id 3 for calling a global function with example usage: fill_intermediate_years(years, end_year) and returns: filled_years