code: def clip(x, mini, maxi):
      return min(max(x, mini), maxi)
  
imports: import argparse
  import os
  import sys
  from subprocess import check_call
  import shlex
  from ci.util import retry, remember_cwd
  from typing import List
  from collections import OrderedDict
  import logging
  import yaml
  import shutil
label_desc: Use image node_id 4 for calling a global function with example usage: clip(x, mini, maxi) and returns: min