code: def get_named_tensor(self, name):
          
          if name in self.named_tensors:
              return True, self.named_tensors[name]
          else:
              return False, None
docs: Returns a named tensor if available.
  
          Returns:
              valid: True if named tensor found, False otherwise
              tensor: If valid, will be a tensor, otherwise None