class_docstr: Rewrites a pattern where it's unobvious that all paths return a value.
  
  This rewrite allows avoiding intermediate None return values.
  
  The following pattern:
  
      if cond:
        <block 1>
        return
      else:
        <block 2>
      <block 3>
  
  is converted to:
  
      if cond:
        <block 1>
        return
      else:
        <block 2>
        <block 3>
  
  and vice-versa (if the else returns, subsequent statements are moved under the
  if branch).
class_docstr_tok: ["Rewrites","a","pattern","where","it","'s","unobvious","that","all","paths","return","a","value",".","This","rewrite","allows","avoiding","intermediate","None","return","values",".","The","following","pattern",":","if","cond",":","<","block","1",">","return","else",":","<","block","2",">","<","block","3",">","is","converted","to",":","if","cond",":","<","block","1",">","return","else",":","<","block","2",">","<","block","3",">","and","vice-versa","(","if","the","else","returns",",","subsequent","statements","are","moved","under","the","if","branch",")","."]
code: def _visit_statement_block(self, node, nodes):
      self.state[_RewriteBlock].enter()
      new_nodes = self.visit_block(
          nodes, after_visit=self._postprocess_statement
      )
      block_definitely_returns = self.state[
          _RewriteBlock
      ].definitely_returns
      self.state[_RewriteBlock].exit()
      return new_nodes, block_definitely_returns
  
imports: import gast
  from nvidia.dali._autograph.core import converter
  from nvidia.dali._autograph.pyct import anno
  from nvidia.dali._autograph.pyct import parser
  from nvidia.dali._autograph.pyct import qual_names
  from nvidia.dali._autograph.pyct import templates
  from nvidia.dali._autograph.pyct.static_analysis import activity
  from nvidia.dali._autograph.pyct.static_analysis.annos import NodeAnno
label_desc: Use image node_id 3 for calling the ConditionalReturnRewriter obj's underlying member method code with example usage: obj._visit_statement_block(node, nodes) and returns: new_nodes,  block_definitely_returns