def METHOD_NAME(self, mock_ospe):
    pc = PlayContext()
    new_stdin = StringIO()
    conn = connection_loader.get("community.aws.aws_ssm", pc, new_stdin)
    conn._connect = MagicMock()
    conn._file_transport_command = MagicMock()
    conn._file_transport_command.return_value = (0, "stdout", "stderr")
    conn.put_file("/in/file", "/out/file")