def METHOD_NAME(subparsers, parents):
    epilog = textwrap.dedent(
        """
        Examples:
         qtile cmd-obj
         qtile cmd-obj -o cmd
         qtile cmd-obj -o cmd -f prev_layout -i
         qtile cmd-obj -o cmd -f prev_layout -a 3 # prev_layout on group 3
         qtile cmd-obj -o group 3 -f focus_back
         qtile cmd-obj -o cmd -f restart # restart qtile
        """
    )
    description = "Access the command interface from a shell."
    parser = subparsers.add_parser(
        "cmd-obj",
        help=description,
        parents=parents,
        epilog=epilog,
        formatter_class=argparse.RawDescriptionHelpFormatter,
    )
    parser.add_argument(
        "--object",
        "-o",
        dest="obj_spec",
        nargs="+",
        help="Specify path to object (space separated).  "
        "If no --function flag display available commands.  "
        "Use `cmd` to specify root command.",
    )
    parser.add_argument("--function", "-f", default="help", help="Select function to execute.")
    parser.add_argument(
        "--args", "-a", nargs="+", default=[], help="Set arguments supplied to function."
    )
    parser.add_argument(
        "--info",
        "-i",
        action="store_true",
        help="With both --object and --function args prints documentation for function.",
    )
    parser.add_argument("--socket", "-s", help="Use specified socket for IPC.")
    parser.set_defaults(func=cmd_obj)