class_docstr: An internal class to track the lifetime of a Tensor.
class_docstr_tok: ["An","internal","class","to","track","the","lifetime","of","a","Tensor","."]
docstr: Name of the allocator used to create this tensor (string).
docstr_tok: ["Name","of","the","allocator","used","to","create","this","tensor","(","string",")","."]
code: def allocator(self) -> str:
      """Name of the allocator used to create this tensor (string)."""
      return self._allocator
  
imports: import collections
  import copy
  import json
  import re
  from typing import Any, Dict, List, Optional, Tuple, Union
  from tensorflow.core.framework import step_stats_pb2
  from tensorflow.python.platform import build_info
  from tensorflow.python.platform import tf_logging
label_desc: Use image node_id 7 for calling the _TensorTracker obj's underlying member method code with example usage: obj.allocator() and returns: self