code: def deploy_ray_func(func, partition, kwargs):  # pragma: no cover
      
      try:
          return func(partition, **kwargs)
      # Sometimes Arrow forces us to make a copy of an object before we operate
      # on it. We don't want the error to propagate to the user, and we want to
      # avoid copying unless we absolutely have to.
      except ValueError:
          return func(partition.copy(), **kwargs)
docs: Deploy a function to a partition in Ray.
  
      Note: Ray functions are not detected by codecov (thus pragma: no cover)
  
      Args:
          func: The function to apply.
          partition: The partition to apply the function to.
          kwargs: A dictionary of keyword arguments for the function.
  
      Returns:
          The result of the function.