code: def is_variable_initialized(variable):
      """Tests if a variable has been initialized.
  
      Args:
        variable: A `Variable`.
  
      Returns:
        Returns a scalar boolean Tensor, `True` if the variable has been
        initialized, `False` otherwise.
      """
      # variable_v1.py is imported at the top-level internally at TF1 import time,
      # so the import time for this file should be reduced as much as possible.
      # Thus import state_ops only when it is used.
      from tensorflow.python.ops import (
          state_ops,
      )  # pylint: disable=g-import-not-at-top
  
      return state_ops.is_variable_initialized(variable)
  
file_path: tensorflow/tensorflow/python/ops/variable_v1.py
imports: from tensorflow.python.framework import ops
  from tensorflow.python.ops import variable_scope
  from tensorflow.python.ops import variables
  from tensorflow.python.util import tf_should_use
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 1 for calling a global function with example usage: is_variable_initialized(variable) and returns: state_ops