code: def _add_dense_feature_type(self, dtype, rank):
      # if scalar then convert tf type to python type name
      avro_type = self._map_tensor_dtype_to_avro_dtype(dtype)
      if rank == 0:
          return avro_type
      else:
          return {
              "type": "array",
              "items": self._add_dense_feature_type(dtype, rank - 1),
          }
  
imports: import os
  import hashlib
  import json
  import numpy
  import tensorflow
  from avro.schema import Parse
  from avro.datafile import DataFileWriter
  from avro.io import DatumWriter
  from tests.test_atds_avro.utils.file_writer import FileWriter
  from tests.test_atds_avro.utils.generator.varlen_tensor_generator import VarLenTensorGeneratorBase
  from tensorflow_io.python.experimental.atds.features import DenseFeature, SparseFeature, VarlenFeature
label_desc: Use image node_id 10 for calling the ATDSWriter obj's underlying member method code with example usage: obj._add_dense_feature_type(dtype, rank) and returns: avro_type, dict