code: def test_jumpstart_environment_variables_instance_variants():
      assert INSTANCE_TYPE_VARIANT.get_instance_specific_environment_variables(
          instance_type="ml.g9.12xlarge"
      ) == {
          "TENSOR_PARALLEL_DEGREE": "4"
      }
  
      assert INSTANCE_TYPE_VARIANT.get_instance_specific_environment_variables(
          instance_type="ml.g5.48xlarge"
      ) == {
          "TENSOR_PARALLEL_DEGREE": "8",
          "JOHN": "DOE",
      }
  
      assert INSTANCE_TYPE_VARIANT.get_instance_specific_environment_variables(
          instance_type="ml.m2.48xlarge"
      ) == {
          "TENSOR_PARALLEL_DEGREE": "400"
      }
  
      assert INSTANCE_TYPE_VARIANT.get_instance_specific_environment_variables(
          instance_type="ml.g6.48xlarge"
      ) == {
          "BLAH": "4"
      }
  
      assert (
          INSTANCE_TYPE_VARIANT.get_instance_specific_environment_variables(
              instance_type="ml.p2.xlarge"
          )
          == {}
      )
  
      assert (
          INSTANCE_TYPE_VARIANT.get_instance_specific_environment_variables(
              instance_type="safh8ads9fhsad89fh"
          )
          == {}
      )
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/jumpstart/test_types.py
imports: from __future__ import absolute_import
  import copy
  from sagemaker.jumpstart.types import JumpStartECRSpecs, JumpStartHyperparameter, JumpStartInstanceTypeVariants, JumpStartModelSpecs, JumpStartModelHeader
  from tests.unit.sagemaker.jumpstart.constants import BASE_SPEC
label_desc: Use image node_id 7 for calling a global function with example usage: test_jumpstart_environment_variables_instance_variants() without return types