code: def login_sdk_client(
      func: Callable[[argparse.Namespace], Any]
  ) -> Callable[..., Any]:
      @functools.wraps(func)
      def f(namespace: argparse.Namespace) -> Any:
          client.login(master=namespace.master, user=namespace.user)
          return func(namespace)
  
      return f
  
file_path: determined/harness/determined/cli/_util.py
imports: import argparse
  import functools
  import sys
  from typing import Any, Callable, Dict, List, Sequence
  import termcolor
  from determined.cli import errors, render
  from determined.common import api, declarative_argparse, util
  from determined.common.api import authentication, bindings, certs
  from determined.experimental import client
label_desc: Use image node_id 2 for calling a global function with example usage: login_sdk_client(func) and returns: f, func