code: def users_create(args):
      """Create new user in the DB."""
      with get_application_builder() as appbuilder:
          role = appbuilder.sm.find_role(args.role)
          if not role:
              valid_roles = appbuilder.sm.get_all_roles()
              raise SystemExit(
                  f"{args.role} is not a valid role. Valid roles are: {valid_roles}"
              )
          if args.use_random_password:
              password = "".join(random.choices(string.printable, k=16))
          elif args.password:
              password = args.password
          else:
              password = getpass.getpass("Password:")
              password_confirmation = getpass.getpass(
                  "Repeat for confirmation:"
              )
              if password != password_confirmation:
                  raise SystemExit("Passwords did not match")
  
          if appbuilder.sm.find_user(args.username):
              print(f"{args.username} already exist in the db")
              return
          user = appbuilder.sm.add_user(
              args.username,
              args.firstname,
              args.lastname,
              args.email,
              role,
              password,
          )
          if user:
              print(
                  f'User "{args.username}" created with role "{args.role}"'
              )
          else:
              raise SystemExit("Failed to create user")
  
imports: from __future__ import annotations
  import functools
  import getpass
  import json
  import os
  import random
  import string
  from typing import Any
  import re2
  from marshmallow import Schema, fields, validate
  from marshmallow.exceptions import ValidationError
  from airflow.cli.simple_table import AirflowConsole
  from airflow.cli.utils import print_export_output
  from airflow.providers.fab.auth_manager.cli_commands.utils import get_application_builder
  from airflow.utils import cli
  from airflow.utils.cli import suppress_logs_and_warning
  from airflow.utils.providers_configuration_loader import providers_configuration_loaded
label_desc: Use image node_id 2 for calling a global function with example usage: users_create(args) without return types