code: def test_secret_key_LinestringViz(linestring_data):
      """Secret key raises a token error"""
      secret = "sk.abc123"
      with pytest.raises(TokenError):
          LinestringViz(linestring_data, access_token=secret)
  
imports: import os
  import json
  import base64
  import random
  from mock import patch
  import pytest
  from mapboxgl.viz import *
  from mapboxgl.errors import TokenError, LegendError
  from mapboxgl.utils import create_color_stops, create_numeric_stops
  from matplotlib.pyplot import imread
label_desc: Use image node_id 7 for calling a global function with example usage: test_secret_key_LinestringViz(linestring_data) without return types