code: def wrap_spark_sql_udf(self, name, package_name=None, object_name=None, java_class_instance=None, doc=""):
          
          def _(*cols):
              jcontainer = self.get_java_container(package_name=package_name, object_name=object_name, java_class_instance=java_class_instance)
              # Ensure that your argument is a column
              function = getattr(jcontainer, name)
              judf = function()
              jc = judf.apply(self.to_scala_seq([_to_java_column(c) for c in cols]))
              return Column(jc)
          _.__name__ = name
          _.__doc__ = doc
          return _
docs: Wraps a scala/java spark user defined function