code: def named_spec(specs, name=""):
      """named_spec"""
      if isinstance(specs, _NamedTensorSpec):
          specs.named(name)
          return
  
      if isinstance(specs, dict):
          for k in specs.keys():
              named_spec(specs[k], f"{name}/{k}")
          return
  
      for k, _ in enumerate(specs):
          named_spec(specs[k], f"{name}/{k}")
      return
  
file_path: io/tensorflow_io/python/experimental/serialization_ops.py
imports: import json
  import tensorflow
  from tensorflow_io.python.ops import core_ops
label_desc: Use image node_id 1 for calling a global function with example usage: named_spec(specs, name) without return types