code: def test_token_env_LinestringViz(monkeypatch, linestring_data):
      """Viz can get token from environment if not specified"""
      monkeypatch.setenv("MAPBOX_ACCESS_TOKEN", TOKEN)
      viz = LinestringViz(linestring_data, color_property="sample")
      assert TOKEN in viz.create_html()
  
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 11 for calling a global function with example usage: test_token_env_LinestringViz(monkeypatch, linestring_data) without return types