code: def _repr_pretty_(self, p, cycle):
          
          from IPython.lib.pretty import RepresentationPrinter
          assert isinstance(p, RepresentationPrinter)
  
          p.begin_group(1, "SparkConfiguration(")
  
          def kv(k, v, do_comma=True):
              p.text(k)
              p.pretty(v)
              if do_comma:
                  p.text(", ")
              p.breakable()
  
          kv("launcher_arguments: ", self._spark_launcher_args)
          kv("conf: ", self._spark_conf_helper)
          kv("spark_home: ", self.spark_home)
          kv("python_path: ", self._python_path, False)
  
          p.end_group(1, ')')
docs: Pretty printer for the spark cnofiguration