code: def convert_to_instance(val):
      if isinstance(val, Instance):
          return val
      else:
          return Instance(val, None)
  
imports: import copy
  import numpy
  import pandas
  import scipy.sparse
  from sklearn.cluster import KMeans
  from sklearn.impute import SimpleImputer
label_desc: Use image node_id 2 for calling a global function with example usage: convert_to_instance(val) and returns: val, Instance