code: def test_evaluates(self, marker_string, environment, expected):
      args = [] if environment is None else [environment]
      assert Marker(marker_string).evaluate(*args) == expected
  
imports: import collections
  import itertools
  import os
  import platform
  import sys
  from typing import cast
  import pytest
  from packaging._parser import Node
  from packaging.markers import InvalidMarker, Marker, UndefinedComparison, default_environment, format_full_version
label_desc: Use image node_id 8 for calling the TestMarker obj's underlying member method code with example usage: obj.test_evaluates(marker_string, environment, expected) without return types