code: def fetch_framework_and_framework_version(
      tensorflow_version, pytorch_version
  ):
      """Function to check the framework used in HuggingFace class"""
  
      if tensorflow_version is not None:  # pylint: disable=no-member
          return (
              "tensorflow",
              tensorflow_version,
          )  # pylint: disable=no-member
      return ("pytorch", pytorch_version)
  
imports: from __future__ import absolute_import
  import logging
  from typing import Optional, Union, List, Dict
  import sagemaker
  from sagemaker import image_uris, ModelMetrics
  from sagemaker.deserializers import JSONDeserializer
  from sagemaker.drift_check_baselines import DriftCheckBaselines
  from sagemaker.fw_utils import model_code_key_prefix, validate_version_or_image_args
  from sagemaker.metadata_properties import MetadataProperties
  from sagemaker.model import FrameworkModel, MODEL_SERVER_WORKERS_PARAM_NAME
  from sagemaker.predictor import Predictor
  from sagemaker.serializers import JSONSerializer
  from sagemaker.session import Session
  from sagemaker.utils import to_string, format_tags
  from sagemaker.workflow import is_pipeline_variable
  from sagemaker.workflow.entities import PipelineVariable
label_desc: Use image node_id 2 for calling a global function with example usage: fetch_framework_and_framework_version(tensorflow_version, pytorch_version) and returns: str,  pytorch_version, str,  tensorflow_version