code: def check_not_none(ctx, param, value):
      if value is None:
          raise click.BadParameter(f"got {value}.")
      return value
  
file_path: nipype/nipype/scripts/utils.py
imports: import re
  import click
  import json
  from .instance import import_module
  from ..interfaces.base import InputMultiPath, traits
  from ..interfaces.base.support import get_trait_desc
label_desc: Use image node_id 1 for calling a global function with example usage: check_not_none(ctx, param, value) and returns: value