code: def is_primitive(value):
      if value is None:
          return True
  
      if (
          isinstance(value, str)
          or isinstance(value, int)
          or isinstance(value, float)
          or isinstance(value, bool)
      ):
          return True
  
      return False
  
file_path: labml/client/labml/internal/configs/utils.py
imports: import warnings
  from typing import Tuple, Union, List, TYPE_CHECKING
label_desc: Use image node_id 1 for calling the Value obj's underlying member method code with example usage: obj.is_primitive(value) and returns: False, True, True