code: def get_v1_constants(module: Any) -> Sequence[str]:
      """Get a list of TF 1.* constants in this module.
  
      Args:
        module: TensorFlow module.
  
      Returns:
        List of all API constants under the given module including TensorFlow and
        Estimator constants.
      """
      constants_v1 = []
      tensorflow_constants_attr_v1 = API_ATTRS_V1[
          TENSORFLOW_API_NAME
      ].constants
      estimator_constants_attr_v1 = API_ATTRS_V1[
          ESTIMATOR_API_NAME
      ].constants
  
      if hasattr(module, tensorflow_constants_attr_v1):
          constants_v1.extend(
              getattr(module, tensorflow_constants_attr_v1)
          )
      if hasattr(module, estimator_constants_attr_v1):
          constants_v1.extend(
              getattr(module, estimator_constants_attr_v1)
          )
      return constants_v1
  
imports: from collections.abc import Sequence
  import functools
  import sys
  from typing import Any, NamedTuple, Optional, Protocol, TypeVar
  from tensorflow.python.util import tf_decorator
  from tensorflow.python.util import tf_inspect
label_desc: Use image node_id 6 for calling a global function with example usage: get_v1_constants(module) and returns: constants_v1