class_docstr: Abstracts a few IO operation over standard "open" vs. gfile.
class_docstr_tok: ["Abstracts","a","few","IO","operation","over","standard","``","open","''","vs.","gfile","."]
code: def __init__(self, use_gfile=False):
      self.use_gfile = use_gfile
      if use_gfile:
          from tensorflow.io import gfile
  
          self.gfile = gfile
      else:
          self.gfile = None
  
imports: from __future__ import annotations
  from collections.abc import Sequence
  import contextlib
  import dataclasses
  import os
  import re
  from typing import Callable, Optional
  import zlib
  from absl import app
  from absl import logging
  import numpy.random
  import jax
  from jax import config
  from jax.experimental import jax2tf
  from jax._src import test_util
  from jax.experimental.jax2tf.tests import primitive_harness
label_desc: Use image node_id 1 to create a new Io object  with example: obj = Io(use_gfile)