class_docstr: A class to turn legacy mode parameters into hyperparameters.
  
  It also disables the ``model_dir`` hyperparameter, and set the
  image URI when instantiating a TensorFlow estimator.
docstr: Returns an ``ast.Str`` for a hyperparameter key replacing a legacy mode parameter.
docstr_tok: ["Returns","an","``","ast.Str","``","for","a","hyperparameter","key","replacing","a","legacy","mode","parameter","."]
code: def _hyperparameter_key_for_param(self, arg):
      """Returns an ``ast.Str`` for a hyperparameter key replacing a legacy mode parameter."""
      name = (
          "sagemaker_requirements"
          if arg == "requirements_file"
          else arg
      )
      return ast.Str(s=name)
  
imports: from __future__ import absolute_import
  import ast
  import boto3
  import six
  from sagemaker.cli.compatibility.v2.modifiers import framework_version, matching
  from sagemaker.cli.compatibility.v2.modifiers.modifier import Modifier
  from sagemaker import image_uris
label_desc: Use image node_id 6 for calling the TensorFlowLegacyModeConstructorUpgrader obj's underlying member method code with example usage: obj._hyperparameter_key_for_param(arg) and returns: ast