(CommandList
  children: [
    (FuncDef
      name: _python_modules
      body: 
        (BraceGroup
          children: [
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LhsName name:COMPREPLY)
                  op: PlusEqual
                  rhs: 
                    {
                      (ArrayLiteralPart
                        words: [
                          {
                            (CommandSubPart
                              command_list: 
                                (CommandList
                                  children: [
                                    (SimpleCommand
                                      words: [
                                        {(compgen)}
                                        {(-W)}
                                        {
                                          (DQ 
                                            (CommandSubPart
                                              command_list: 
                                                (CommandList
                                                  children: [
                                                    (C 
                                                      {
                                                        (BracedVarSub
                                                          token: <VSub_Number 1>
                                                          suffix_op: 
                                                            (StringUnary
                                                              op_id: VTest_ColonHyphen
                                                              arg_word: {(python)}
                                                            )
                                                          spids: [23 27]
                                                        )
                                                      } {(-c)} {(SQ <'import pkgutil\n'> <'for mod in pkgutil.iter_modules(): print(mod[1])'>)}
                                                    )
                                                  ]
                                                )
                                              left_token: <Left_CommandSub '$('>
                                              spids: [21 36]
                                            )
                                          )
                                        }
                                        {(--)}
                                        {(DQ ($ VSub_Name '$cur'))}
                                      ]
                                      redirects: [
                                        (Redir
                                          op_id: Redir_Great
                                          fd: 2
                                          arg_word: {(/dev/null)}
                                          spids: [39]
                                        )
                                      ]
                                    )
                                  ]
                                )
                              left_token: <Left_CommandSub '$('>
                              spids: [14 48]
                            )
                          }
                        ]
                      )
                    }
                  spids: [11]
                )
              ]
              spids: [11]
            )
          ]
          spids: [8]
        )
      spids: [4 7]
    )
    (AndOr
      children: [
        (FuncDef
          name: _python
          body: 
            (BraceGroup
              children: [
                (Assignment
                  keyword: Assign_Local
                  pairs: [
                    (assign_pair lhs:(LhsName name:cur) op:Equal spids:[64])
                    (assign_pair lhs:(LhsName name:prev) op:Equal spids:[66])
                    (assign_pair lhs:(LhsName name:words) op:Equal spids:[68])
                    (assign_pair lhs:(LhsName name:cword) op:Equal spids:[70])
                  ]
                  spids: [62]
                )
                (AndOr
                  children: [(C {(_init_completion)}) (ControlFlow token:<ControlFlow_Return return>)]
                  op_id: Op_DPipe
                )
                (Case
                  to_match: {($ VSub_Name '$prev')}
                  arms: [
                    (case_arm
                      pat_list: [{(-) (SQ <'?'>)} {(-h)} {(--help)} {(-V)} {(--version)} {(-c)} {(-X)}]
                      action: [(ControlFlow token:<ControlFlow_Return return> arg_word:{(0)})]
                      spids: [88 104 112 16777215]
                    )
                    (case_arm
                      pat_list: [{(-m)}]
                      action: [
                        (C {(_python_modules)} {(DQ ($ VSub_Number '$1'))})
                        (ControlFlow
                          token: <ControlFlow_Return return>
                          arg_word: {(0)}
                        )
                      ]
                      spids: [115 116 131 16777215]
                    )
                    (case_arm
                      pat_list: [{(-Q)}]
                      action: [
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:COMPREPLY)
                              op: Equal
                              rhs: 
                                {
                                  (ArrayLiteralPart
                                    words: [
                                      {
                                        (CommandSubPart
                                          command_list: 
                                            (CommandList
                                              children: [
                                                (C {(compgen)} {(-W)} {(DQ ('old new warn warnall'))} 
                                                  {(--)} {(DQ ($ VSub_Name '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [141 157]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [138]
                            )
                          ]
                          spids: [138]
                        )
                        (ControlFlow
                          token: <ControlFlow_Return return>
                          arg_word: {(0)}
                        )
                      ]
                      spids: [134 135 167 16777215]
                    )
                    (case_arm
                      pat_list: [{(-W)}]
                      action: [
                        (Assignment
                          keyword: Assign_None
                          pairs: [
                            (assign_pair
                              lhs: (LhsName name:COMPREPLY)
                              op: Equal
                              rhs: 
                                {
                                  (ArrayLiteralPart
                                    words: [
                                      {
                                        (CommandSubPart
                                          command_list: 
                                            (CommandList
                                              children: [
                                                (C {(compgen)} {(-W)} 
                                                  {(DQ ('ignore default all module once error'))} {(--)} {(DQ ($ VSub_Name '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [177 195]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [174]
                            )
                          ]
                          spids: [174]
                        )
                        (ControlFlow
                          token: <ControlFlow_Return return>
                          arg_word: {(0)}
                        )
                      ]
                      spids: [170 171 205 16777215]
                    )
                    (case_arm
                      pat_list: [{(ExtGlobPart op:<ExtGlob_Bang '!('> spids:[208 229])}]
                      action: [
                        (AndOr
                          children: [
                            (DBracket
                              expr: 
                                (LogicalOr
                                  left: 
                                    (BoolBinary
                                      op_id: BoolBinary_lt
                                      left: {($ VSub_Name '$cword')}
                                      right: {(2)}
                                    )
                                  right: 
                                    (BoolBinary
                                      op_id: BoolBinary_GlobNEqual
                                      left: 
                                        {
                                          (BracedVarSub
                                            token: <VSub_Name words>
                                            bracket_op: 
                                              (ArrayIndex
                                                expr: 
                                                  (ArithBinary
                                                    op_id: Arith_Minus
                                                    left: (ArithVarRef name:cword)
                                                    right: (ArithWord w:{(Lit_Digits 2)})
                                                  )
                                              )
                                            spids: [243 250]
                                          )
                                        }
                                      right: {(-) (Lit_Other '[') (QWX) (Lit_Other ']')}
                                    )
                                )
                            )
                            (C {(_filedir)})
                          ]
                          op_id: Op_DAmp
                        )
                      ]
                      spids: [208 230 266 16777215]
                    )
                  ]
                  spids: [81 85 269]
                )
                (Assignment
                  keyword: Assign_Local
                  pairs: [(assign_pair lhs:(LhsName name:i) op:Equal spids:[280])]
                  spids: [278]
                )
                (ForExpr
                  init: 
                    (BinaryAssign
                      op_id: Arith_Equal
                      left: (LhsName name:i)
                      right: (ArithWord w:{(Lit_Digits 0)})
                    )
                  cond: 
                    (ArithBinary
                      op_id: Arith_Less
                      left: (ArithVarRef name:i)
                      right: 
                        (ArithBinary
                          op_id: Arith_Minus
                          left: 
                            (ArithWord
                              w: 
                                {
                                  (BracedVarSub
                                    token: <VSub_Name words>
                                    prefix_op: VSub_Pound
                                    bracket_op: (WholeArray op_id:Lit_At)
                                    spids: [296 302]
                                  )
                                }
                            )
                          right: (ArithWord w:{(Lit_Digits 1)})
                        )
                    )
                  update: (UnaryAssign op_id:Node_PostDPlus child:(LhsName name:i))
                  body: 
                    (DoGroup
                      children: [
                        (If
                          arms: [
                            (if_arm
                              cond: [
                                (Sentence
                                  child: 
                                    (DBracket
                                      expr: 
                                        (BoolBinary
                                          op_id: BoolBinary_GlobDEqual
                                          left: 
                                            {
                                              (BracedVarSub
                                                token: <VSub_Name words>
                                                bracket_op: (ArrayIndex expr:(ArithVarRef name:i))
                                                spids: [321 326]
                                              )
                                            }
                                          right: {(BoolUnary_c -c)}
                                        )
                                    )
                                  terminator: <Op_Semi ';'>
                                )
                              ]
                              action: [(C {(_filedir)})]
                              spids: [16777215 335]
                            )
                          ]
                          spids: [16777215 341]
                        )
                      ]
                      spids: [314 344]
                    )
                )
                (If
                  arms: [
                    (if_arm
                      cond: [
                        (Sentence
                          child: 
                            (DBracket
                              expr: 
                                (BoolBinary
                                  op_id: BoolBinary_GlobNEqual
                                  left: {(DQ ($ VSub_Name '$cur'))}
                                  right: {(-) (Lit_Other '*')}
                                )
                            )
                          terminator: <Op_Semi ';'>
                        )
                      ]
                      action: [(C {(_filedir)} {(SQ <'py?([co])'>)})]
                      spids: [16777215 365]
                    )
                  ]
                  else_action: [
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:COMPREPLY)
                          op: Equal
                          rhs: 
                            {
                              (ArrayLiteralPart
                                words: [
                                  {
                                    (CommandSubPart
                                      command_list: 
                                        (CommandList
                                          children: [
                                            (C {(compgen)} {(-W)} {(SQ <'$( _parse_help "$1" -h )'>)} 
                                              {(--)} {(DQ ($ VSub_Name '$cur'))}
                                            )
                                          ]
                                        )
                                      left_token: <Left_CommandSub '$('>
                                      spids: [381 397]
                                    )
                                  }
                                ]
                              )
                            }
                          spids: [378]
                        )
                      ]
                      spids: [378]
                    )
                  ]
                  spids: [375 402]
                )
                (ControlFlow token:<ControlFlow_Return return> arg_word:{(0)})
              ]
              spids: [59]
            )
          spids: [55 58]
        )
        (C {(complete)} {(-F)} {(_python)} {(python)} {(python2)} {(python3)} {(pypy)})
      ]
      op_id: Op_DAmp
    )
  ]
)