code: def _get_environment(submit_directory, model_url, image_uri):
      return {
          "Environment": {
              "SAGEMAKER_SUBMIT_DIRECTORY": submit_directory,
              "SAGEMAKER_PROGRAM": "dummy_script.py",
              "SAGEMAKER_REGION": "us-west-2",
              "SAGEMAKER_CONTAINER_LOG_LEVEL": "20",
          },
          "Image": image_uri,
          "ModelDataUrl": model_url,
      }
  
imports: from __future__ import absolute_import
  import logging
  import json
  import os
  import pytest
  from mock import ANY, MagicMock, Mock, patch
  from packaging.version import Version
  from sagemaker import image_uris
  from sagemaker.pytorch import defaults
  from sagemaker.pytorch import PyTorch, PyTorchPredictor, PyTorchModel
  from sagemaker.instance_group import InstanceGroup
  from sagemaker.session_settings import SessionSettings
label_desc: Use image node_id 6 for calling a global function with example usage: _get_environment(submit_directory, model_url, image_uri) and returns: dict