code: def _results_select(full_output, r):
      """Select from a tuple of (root, funccalls, iterations, flag)"""
      x, funcalls, iterations, flag = r
      if full_output:
          results = RootResults(
              root=x,
              iterations=iterations,
              function_calls=funcalls,
              flag=flag,
          )
          return x, results
      return x
  
imports: from __future__ import division, print_function, absolute_import
  import warnings
  from collections import namedtuple
  from .None import _zeros
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: _results_select(full_output, r) and returns: x, x,  results