parameters: (master=None)
return_statement: return master
docstring: If master is not None, itself is returned. If master is None,
      the default master is returned if there is one, otherwise a new
      master is created and returned.
  
      If it is not allowed to use the default root and master is None,
      RuntimeError is raised.
docstring_summary: If master is not None, itself is returned. If master is None,
      the default master is returned if there is one, otherwise a new
      master is created and returned.
docstring_tokens: If master is not None itself is returned . If master is None the default master is returned if there is one otherwise a new master is created and returned .
function: def setup_master(master=None):
      """If master is not None, itself is returned. If master is None,
      the default master is returned if there is one, otherwise a new
      master is created and returned.
  
      If it is not allowed to use the default root and master is None,
      RuntimeError is raised."""
      if master is None:
          if Tkinter._support_default_root:
              master = Tkinter._default_root or Tkinter.Tk()
          else:
              raise RuntimeError(
                      "No master specified and Tkinter is "
                      "configured to not support default root")
      return master
function_tokens: def setup_master ( master = None ) : if master is None : if Tkinter . _support_default_root : master = Tkinter . _default_root or Tkinter . Tk ( ) else : raise RuntimeError ( "No master specified and Tkinter is " "configured to not support default root" ) return master