code: def _tfjs_installed():
      try:
          importlib.import_module("tensorflowjs")
      except ImportError:
          return False
      else:
          return True
  
file_path: tfx/tfx/components/trainer/rewriting/rewriter_factory_test.py
imports: import importlib
  import unittest
  from absl.testing import absltest
  from absl.testing import parameterized
  from tfx.components.trainer.rewriting import rewriter_factory
label_desc: Use image node_id 1 for calling a global function with example usage: _tfjs_installed() and returns: True, False