code: def test_keras_model_to_graph_def_functional_model_with_cycle(self):
      expected_proto = """
              node {
                name: "model/cycle_input"
                attr {
                  key: "dtype"
                  value {
                    type: DT_FLOAT
                  }
                }
                attr {
                  key: "keras_class"
                  value {
                    s: "InputLayer"
                  }
                }
              }
              node {
                name: "model/dense"
                input: "model/cycle_input"
                attr {
                  key: "dtype"
                  value {
                    type: DT_FLOAT
                  }
                }
                attr {
                  key: "keras_class"
                  value {
                    s: "Dense"
                  }
                }
              }
              node {
                name: "model/dense_1"
                input: "model/dense"
                input: "model/dense_2"
                attr {
                  key: "dtype"
                  value {
                    type: DT_FLOAT
                  }
                }
                attr {
                  key: "keras_class"
                  value {
                    s: "Dense"
                  }
                }
              }
              node {
                name: "model/dense_2"
                input: "model/dense_1"
                attr {
                  key: "dtype"
                  value {
                    type: DT_FLOAT
                  }
                }
                attr {
                  key: "keras_class"
                  value {
                    s: "Dense"
                  }
                }
              }
          """
      inputs = keras.layers.Input(shape=(784,), name="cycle_input")
      d0 = keras.layers.Dense(64, activation="relu")
      d1 = keras.layers.Dense(64, activation="relu")
      d2 = keras.layers.Dense(64, activation="relu")
  
      model = keras.models.Model(
          inputs=inputs, outputs=d1(d2(d1(d0(inputs)))), name="model"
      )
      self.assertGraphDefToModel(expected_proto, model)
  
file_path: tensorboard/tensorboard/plugins/graph/keras_util_test.py
imports: import json
  import tensorflow
  from tensorboard.plugins.graph import keras_util
label_desc: Use image node_id 4 for calling the KerasUtilTest obj's underlying member method code with example usage: obj.test_keras_model_to_graph_def_functional_model_with_cycle() without return types