code: def check_for_input_len_diff(*args):
      
      arrays_len = [len(arr) for arr in args]
      if not all(a == arrays_len[0] for a in arrays_len):
          err_msg = ("Error: mismatched data lengths, check to ensure that all "
                     "input data is the same length and valid")
          raise Exception(err_msg)
docs: Check for Input Length Difference.
  
      This method checks if multiple data sets that are inputted are all the same
      size. If they are not the same length an error is raised with a custom
      message that informs the developer that the data set's lengths are not the
      same.