code: def test_mapbox_tiles_api_url():
      token = "foo"
      map_name = "bar"
      tile = [0, 1, 2]
      exp_url = (
          "https://api.mapbox.com/styles/v1/mapbox/bar/tiles"
          "/2/0/1?access_token=foo"
      )
  
      mapbox_sample = cimgt.MapboxTiles(token, map_name)
      url_str = mapbox_sample._image_url(tile)
      assert url_str == exp_url
  
imports: import hashlib
  import os
  import types
  import warnings
  import numpy
  from numpy.testing import assert_array_almost_equal
  import pytest
  import shapely.geometry
  from cartopy import config
  import cartopy.crs
  import cartopy.io.img_tiles
label_desc: Use image node_id 8 for calling a global function with example usage: test_mapbox_tiles_api_url() without return types