(CommandList
  children: [
    (AndOr
      children: [
        (FuncDef
          name: _pydoc
          body: 
            (BraceGroup
              children: [
                (Assignment
                  keyword: Assign_Local
                  pairs: [
                    (assign_pair lhs:(LhsName name:cur) op:Equal spids:[13])
                    (assign_pair lhs:(LhsName name:prev) op:Equal spids:[15])
                    (assign_pair lhs:(LhsName name:words) op:Equal spids:[17])
                    (assign_pair lhs:(LhsName name:cword) op:Equal spids:[19])
                  ]
                  spids: [11]
                )
                (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: [{(-k)} {(-p)}]
                      action: [(ControlFlow token:<ControlFlow_Return return>)]
                      spids: [37 40 46 16777215]
                    )
                    (case_arm
                      pat_list: [{(-w)}]
                      action: [(C {(_filedir)}) (ControlFlow token:<ControlFlow_Return return>)]
                      spids: [49 50 59 16777215]
                    )
                  ]
                  spids: [30 34 62]
                )
                (If
                  arms: [
                    (if_arm
                      cond: [
                        (Sentence
                          child: 
                            (DBracket
                              expr: 
                                (BoolBinary
                                  op_id: BoolBinary_GlobDEqual
                                  left: {(DQ ($ VSub_Name '$cur'))}
                                  right: {(-) (Lit_Other '*')}
                                )
                            )
                          terminator: <Op_Semi ';'>
                        )
                      ]
                      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 
                                                      <
'$( "$1" | sed -e "s/^pydoc3\\{0,1\\} //" | _parse_help - )'
                                                      >
                                                    )
                                                  } {(--)} {(DQ ($ VSub_Name '$cur'))}
                                                )
                                              ]
                                            )
                                          left_token: <Left_CommandSub '$('>
                                          spids: [88 108]
                                        )
                                      }
                                    ]
                                  )
                                }
                              spids: [85]
                            )
                          ]
                          spids: [85]
                        )
                        (ControlFlow token:<ControlFlow_Return return>)
                      ]
                      spids: [16777215 82]
                    )
                  ]
                  spids: [16777215 116]
                )
                (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 <'keywords topics modules'>)} {(--)} 
                                          {(DQ ($ VSub_Name '$cur'))}
                                        )
                                      ]
                                    )
                                  left_token: <Left_CommandSub '$('>
                                  spids: [123 139]
                                )
                              }
                            ]
                          )
                        }
                      spids: [120]
                    )
                  ]
                  spids: [120]
                )
                (Sentence
                  child: 
                    (Assignment
                      keyword: Assign_Local
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:python)
                          op: Equal
                          rhs: {(python)}
                          spids: [147]
                        )
                      ]
                      spids: [145]
                    )
                  terminator: <Op_Semi ';'>
                )
                (AndOr
                  children: [
                    (DBracket
                      expr: 
                        (BoolBinary
                          op_id: BoolBinary_GlobDEqual
                          left: {($ VSub_Number '$1')}
                          right: {(Lit_Other '*') (3) (Lit_Other '*')}
                        )
                    )
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LhsName name:python)
                          op: Equal
                          rhs: {(python3)}
                          spids: [165]
                        )
                      ]
                      spids: [165]
                    )
                  ]
                  op_id: Op_DAmp
                )
                (C {(_xfunc)} {(python)} {(_python_modules)} {($ VSub_Name '$python')})
                (Assignment
                  keyword: Assign_None
                  pairs: [
                    (assign_pair
                      lhs: (LhsName name:COMPREPLY)
                      op: PlusEqual
                      rhs: 
                        {
                          (ArrayLiteralPart
                            words: [
                              {
                                (CommandSubPart
                                  command_list: 
                                    (CommandList
                                      children: [
                                        (C {(compgen)} {(-W)} 
                                          {(SQ <'$( $1 keywords topics | sed -e /^Here/d )'>)} {(--)} {(DQ ($ VSub_Name '$cur'))}
                                        )
                                      ]
                                    )
                                  left_token: <Left_CommandSub '$('>
                                  spids: [190 208]
                                )
                              }
                            ]
                          )
                        }
                      spids: [187]
                    )
                  ]
                  spids: [187]
                )
                (C {(_filedir)} {(py)})
              ]
              spids: [8]
            )
          spids: [4 7]
        )
        (C {(complete)} {(-F)} {(_pydoc)} {(pydoc)} {(pydoc3)})
      ]
      op_id: Op_DAmp
    )
  ]
)