code: def _check_tilde_start(x):
      return bool(isinstance(x, str) and x.startswith("~"))
  
imports: import functools
  import importlib
  import importlib.resources
  import re
  import warnings
  from functools import lru_cache
  import matplotlib.pyplot
  import numpy
  from numpy import newaxis
  from .rcparams import rcParams
label_desc: Use image node_id 1 for calling a global function with example usage: _check_tilde_start(x) and returns: bool