code: def unary_vector_func_fixture():
      """
      Register a vector function
      """
  
      def pct_rank(ctx, x):
          # copy here to get around pandas 1.0 issue
          return pa.array(x.to_pandas().copy().rank(pct=True))
  
      func_name = "y=pct_rank(x)"
      doc = empty_udf_doc
      pc.register_vector_function(
          pct_rank, func_name, doc, {"x": pa.float64()}, pa.float64()
      )
  
      return pct_rank, func_name
  
imports: import pytest
  import numpy
  import pyarrow
  from pyarrow import compute
label_desc: Use image node_id 14 for calling a global function with example usage: unary_vector_func_fixture() and returns: pct_rank,  func_name, pa