code: def aggregated(args: Namespace) -> None:
      params = {
          "start_date": args.start_date,
          "end_date": args.end_date,
          "period": "RESOURCE_ALLOCATION_AGGREGATION_PERIOD_MONTHLY"
          if args.monthly
          else "RESOURCE_ALLOCATION_AGGREGATION_PERIOD_DAILY",
      }
      path = (
          "api/v1/resources/allocation/aggregated"
          if args.json
          else "resources/allocation/aggregated"
      )
      print_response(api.get(args.master, path, params=params))
  
file_path: determined/harness/determined/cli/resources.py
imports: import sys
  from argparse import Namespace
  import requests
  from determined.common import api
  from determined.common.api import authentication
  from determined.common.declarative_argparse import Arg, ArgsDescription, Cmd
label_desc: Use image node_id 3 for calling a global function with example usage: aggregated(args) without return types