code: def get_v1_names(symbol: Any) -> Sequence[str]:
      """Get a list of TF 1.* names for this symbol.
  
      Args:
        symbol: symbol to get API names for.
  
      Returns:
        List of all API names for this symbol including TensorFlow and
        Estimator names.
      """
      names_v1 = []
      tensorflow_api_attr_v1 = API_ATTRS_V1[TENSORFLOW_API_NAME].names
      estimator_api_attr_v1 = API_ATTRS_V1[ESTIMATOR_API_NAME].names
      keras_api_attr_v1 = API_ATTRS_V1[KERAS_API_NAME].names
  
      if not hasattr(symbol, "__dict__"):
          return names_v1
      if tensorflow_api_attr_v1 in symbol.__dict__:
          names_v1.extend(getattr(symbol, tensorflow_api_attr_v1))
      if estimator_api_attr_v1 in symbol.__dict__:
          names_v1.extend(getattr(symbol, estimator_api_attr_v1))
      if keras_api_attr_v1 in symbol.__dict__:
          names_v1.extend(getattr(symbol, keras_api_attr_v1))
      return names_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 4 for calling a global function with example usage: get_v1_names(symbol) and returns: names_v1, names_v1