code: def direct(model_name, target_size):
      if "yolo" in model_name.lower():
  
          def _direct(inputs):
              return __preprocess_dict__[model_name](
                  inputs, target_size
              )
  
      else:
  
          def _direct(inputs):
              return __preprocess_dict__[model_name](inputs)
  
      return _direct
  
file_path: tensornets/tensornets/preprocess.py
imports: import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: direct(model_name, target_size) and returns: _direct, __preprocess_dict__, __preprocess_dict__