def METHOD_NAME(self, *args, **options):
    # Run migrate
    if options.get("migrate"):
        self.stdout.write("Performing database migrations...")
        call_command(
            "migrate",
            interactive=False,
            traceback=options["traceback"],
            verbosity=options["verbosity"],
        )
        self.stdout.write()
    # Run trace_paths
    if options.get("trace_paths"):
        self.stdout.write("Generating cable paths...")
        call_command("trace_paths", no_input=True)
        self.stdout.write()
    # Run build
    if options.get("build_ui"):
        self.stdout.write("Building user interface...")
        call_command("build_ui", npm_install=True)
        self.stdout.write()
    # Run collectstatic
    if options.get("collectstatic"):
        self.stdout.write("Collecting static files...")
        call_command("collectstatic", interactive=False)
        self.stdout.write()
    # Run remove_stale_contenttypes
    if options.get("remove_stale_contenttypes"):
        self.stdout.write("Removing stale content types...")
        call_command("remove_stale_contenttypes", interactive=False)
        self.stdout.write()
    # Run clearsessions
    if options.get("clearsessions"):
        self.stdout.write("Removing expired sessions...")
        call_command("clearsessions")
        self.stdout.write()
    # Send installation metrics
    if options.get("send_installation_metrics"):
        self.stdout.write("Sending installation metrics...")
        call_command("send_installation_metrics")
        self.stdout.write()
    else:
        self.stdout.write("--no-send-installation-metrics was specified; skipping installation metrics.")
        self.stdout.write()
    # Run refresh_content_type_cache
    if options.get("remove_stale_contenttypes") or options.get("refresh_content_type_cache"):
        self.stdout.write("Refreshing _content_type cache")
        call_command("refresh_content_type_cache")
        self.stdout.write()
    # Run refresh_dynamic_group_member_caches
    if options.get("refresh_dynamic_group_member_caches"):
        self.stdout.write("Refreshing dynamic group member caches...")
        call_command("refresh_dynamic_group_member_caches")
        self.stdout.write()