code: def strip_vl_extension(filename):
      
      for ext in ['.vl.json', '.json']:
          if filename.endswith(ext):
              return filename[:-len(ext)]
      else:
          return filename
docs: Strip the vega-lite extension (either vl.json or json) from filename