code: def require_feature_flag(
      feature_flag: str, error_message: str
  ) -> Callable[..., Any]:
      def decorator(function: Callable[..., Any]) -> Callable[..., Any]:
          def wrapper(args: argparse.Namespace) -> None:
              resp = bindings.get_GetMaster(setup_session(args))
              if not resp.to_json().get("rbacEnabled"):
                  raise errors.FeatureFlagDisabled(error_message)
              function(args)
  
          return wrapper
  
      return decorator
  
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 4 for calling a global function with example usage: require_feature_flag(feature_flag, error_message) and returns: decorator, wrapper