code: def _get_record_type(sparse):
      if sparse:
          return {
              "values": dtypes.int64,
              "indices": dtypes.int64,
              "dense_shape": dtypes.int64,
          }
      return dtypes.int32
  
imports: import random
  from absl.testing import parameterized
  from tensorflow.python.data.kernel_tests import test_base
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.eager import context
  from tensorflow.python.framework import combinations
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import sparse_tensor
  from tensorflow.python.framework import tensor_shape
  from tensorflow.python.ops import array_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 4 for calling a global function with example usage: _get_record_type(sparse) and returns: dtypes, dict