code: def _ZerosLikeV1(op, index):
      """Branch of ZerosLike for TF1."""
      val = op.outputs[index]
      op_ctxt = (
          op._get_control_flow_context()
      )  # pylint: disable=protected-access
      if op_ctxt:
          # We are in a cond context. Use a switch to create zeros only when needed.
          pred = op_ctxt.pred
          branch = op_ctxt.branch
          switch_val = control_flow_ops.switch(op.inputs[0], pred)[
              1 - branch
          ]
          # A op is created along the branch taken as control dependencies are on
          # the whole op and not on the tensor output.
          pivot = array_ops.identity(switch_val)
          if val.dtype == dtypes.resource:
              with ops.control_dependencies([pivot]):
                  return array_ops.zeros(
                      gen_resource_variable_ops.variable_shape(
                          switch_val
                      ),
                      dtype=default_gradient.get_zeros_dtype(val),
                  )
          zeros_shape = array_ops.shape_internal(
              switch_val, optimize=False
          )
          # Ensure ops created within array_ops.zeros are dominated by switch in
          # cond context.
          with ops.control_dependencies([pivot]):
              return array_ops.zeros(zeros_shape, dtype=val.dtype)
      else:
          return array_ops.zeros_like(val, optimize=False)
  
imports: from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import control_flow_ops
  from tensorflow.python.ops import control_flow_util
  from tensorflow.python.ops import control_flow_v2_func_graphs
  from tensorflow.python.ops import default_gradient
  from tensorflow.python.ops import gen_data_flow_ops
  from tensorflow.python.ops import gen_resource_variable_ops
  from tensorflow.python.ops import resource_variable_ops
label_desc: Use image node_id 3 for calling a global function with example usage: _ZerosLikeV1(op, index) and returns: array_ops, array_ops, array_ops