class_docstr: Essentially a data class with a parametrized format method
  
  Helper to interpolate various combinations of framework_version, py_version, and image
  as expected by framework and model classes
  
  TODO: use attrs package and eliminate the boilerplate...
class_docstr_tok: ["Essentially","a","data","class","with","a","parametrized","format","method","Helper","to","interpolate","various","combinations","of","framework_version",",","py_version",",","and","image","as","expected","by","framework","and","model","classes","TODO",":","use","attrs","package","and","eliminate","the","boilerplate","..."]
code: def _templates(self, model=False):
      module = self.framework.lower()
      submodule = "model" if model else "estimator"
      suffix = "Model" if model else ""
      classname = "{framework}{suffix}".format(
          framework=self.framework, suffix=suffix
      )
      templates = (
          "{classname}({{}})",
          "sagemaker.{module}.{classname}({{}})",
          "sagemaker.{module}.{submodule}.{classname}({{}})",
      )
      return tuple(
          template.format(
              classname=classname, module=module, submodule=submodule
          )
          for template in templates
      )
  
imports: from __future__ import absolute_import
  import pytest
  from sagemaker.cli.compatibility.v2.modifiers import framework_version
  from tests.unit.sagemaker.cli.compatibility.v2.modifiers.ast_converter import ast_call
label_desc: Use image node_id 3 for calling the Template obj's underlying member method code with example usage: obj._templates(model) and returns: tuple