code: def _build_tf(sagemaker_session, **kwargs):
      return TensorFlow(
          sagemaker_session=sagemaker_session,
          entry_point="dummy.py",
          role="dummy-role",
          instance_count=1,
          instance_type="ml.c4.xlarge",
          **kwargs,
      )
  
file_path: sagemaker-python-sdk/tests/unit/sagemaker/tensorflow/test_estimator_init.py
imports: from __future__ import absolute_import
  from mock import Mock, patch
  from packaging import version
  import pytest
  from sagemaker.tensorflow import TensorFlow
label_desc: Use image node_id 2 for calling a global function with example usage: _build_tf(sagemaker_session) and returns: TensorFlow