code: def test__serve(mock__get_atm, mock_create_app):
      # setup
      args_mock = Mock(debug=False, host="1.2.3", port="456")
  
      # run
      cli._serve(args_mock)
  
      # assert
      mock__get_atm.assert_called_once_with(args_mock)
      mock_create_app.assert_called_once_with(
          mock__get_atm.return_value, False
      )
      mock_create_app.return_value.run.assert_called_once_with(
          host="1.2.3", port="456"
      )
  
file_path: ATM/tests/test_cli.py
imports: from mock import Mock, patch
  from atm import cli
label_desc: Use image node_id 6 for calling a global function with example usage: test__serve(mock__get_atm, mock_create_app) without return types