code: def mock_boto(num_calls: int = 1):
      mock_client = client("secretsmanager", region_name="us-east-1")
      mock_session = create_autospec(boto3.Session)
      mock_session.client.return_value = mock_client
  
      # Stub get_secret_value response
      stub = Stubber(mock_client)
      for i in range(num_calls):
          stub.add_response(
              method="get_secret_value",
              expected_params={
                  "SecretId": "secret_name"  # Matches os.environ['SECRET_NAME']
              },
              service_response={
                  "SecretString": """{"username": "myuser", "password": "mypass"}"""
              },
          )
      return mock_session, stub
  
file_path: mxnet/ci/test_docker_login.py
imports: import os
  import subprocess
  import unittest
  from unittest.mock import create_autospec, patch, call, MagicMock
  import boto3
  from boto3 import client
  from botocore.stub import Stubber
  from docker_login import login_dockerhub, logout_dockerhub, main, DOCKERHUB_RETRY_SECONDS, DOCKERHUB_LOGIN_NUM_RETRIES
label_desc: Use image node_id 1 for calling a global function with example usage: mock_boto(num_calls) and returns: mock_session,  stub