title: How to print custom messages in tensorflow?
body: <p>Instead of suppressing tensorflow warnings, I want to print custom warnings.</p>
  <p>For the tensorflow warnings/messages, I'm talking about this:</p>
  <p><a href="https://i.stack.imgur.com/cK1pS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cK1pS.png" alt="enter image description here" /></a></p>
  <p>How do I print my custom message in this style? And I want my custom warnings can be suppressed in a way like suppressing tensorflow warnings.</p>
  <p>I'm using tensorflow 2.</p>