code: def check_options_class_pickling(cls, pickler, **attr_values):
      opts = cls(**attr_values)
      new_opts = pickler.loads(
          pickler.dumps(opts, protocol=pickler.HIGHEST_PROTOCOL)
      )
      for name, value in attr_values.items():
          assert getattr(new_opts, name) == value
  
imports: from collections import OrderedDict
  from decimal import Decimal
  import io
  import itertools
  import json
  import string
  import unittest
  import numpy
  import pytest
  import pyarrow
  from pyarrow.json import read_json, ReadOptions, ParseOptions
label_desc: Use image node_id 3 for calling a global function with example usage: check_options_class_pickling(cls, pickler) without return types