code: def _filter_vm_lazy(val):
      if val == "False" or val is False:
          return False
      elif val == "True" or val is True:
          return True
      elif val == "None" or val is None:
          return None
      else:
          raise ValueError(
              "Valid values for an vm__lazy parameter "
              f"should be None, False or True, not `{val}`."
          )
  
imports: import errno
  import logging
  import os
  import platform
  import re
  import socket
  import sys
  import textwrap
  import numpy
  from setuptools._distutils.spawn import find_executable
  import pytensor
  from pytensor.configparser import BoolParam, ConfigParam, DeviceParam, EnumStr, FloatParam, IntParam, StrParam, _create_default_config
  from pytensor.utils import LOCAL_BITWIDTH, PYTHON_INT_BITWIDTH, call_subprocess_Popen, maybe_add_to_os_environ_pathlist, output_subprocess_Popen
label_desc: Use image node_id 14 for calling a global function with example usage: _filter_vm_lazy(val) and returns: False, True, None