class_docstr: ArrowIOResource holds resources for ArrowIOTensor
docstr: Make the resource with a tf.py_function that inits a pyarrow.Table
docstr_tok: ["Make","the","resource","with","a","tf.py_function","that","inits","a","pyarrow.Table"]
code: def from_py_function(cls, gen_table_func, func_inp):
      """Make the resource with a tf.py_function that inits a pyarrow.Table"""
      arrow_resource = cls()
  
      def wrap_func(inp):
          table = gen_table_func(inp)
          return arrow_resource.init_resource_op(table)
  
      py_func = tf.py_function(
          func=wrap_func, inp=func_inp, Tout=tf.resource
      )
      arrow_resource.resource_op = py_func
      return arrow_resource
  
imports: import uuid
  import tensorflow
  from tensorflow_io.python.ops import io_tensor_ops
  from tensorflow_io.python.ops import core_ops
label_desc: Use image node_id 3 for calling the ArrowIOResource obj's underlying member method code with example usage: obj.from_py_function(cls, gen_table_func, func_inp) and returns: arrow_resource, arrow_resource