code: def analyze():
      input_args = request.get_json()
  
      if input_args is None:
          return {"message": "empty input set passed"}
  
      img_path = input_args.get("img_path")
      if img_path is None:
          return {"message": "you must pass img_path input"}
  
      detector_backend = input_args.get("detector_backend", "opencv")
      enforce_detection = input_args.get("enforce_detection", True)
      align = input_args.get("align", True)
      actions = input_args.get(
          "actions", ["age", "gender", "emotion", "race"]
      )
  
      demographies = service.analyze(
          img_path=img_path,
          actions=actions,
          detector_backend=detector_backend,
          enforce_detection=enforce_detection,
          align=align,
      )
  
      return demographies
  
imports: from flask import Blueprint, request
  import service
label_desc: Use image node_id 4 for calling a global function with example usage: analyze() and returns: demographies, dict, dict