code: def parse_class_names(args):
      
      num_class = args.num_class
      if len(args.class_names) > 0:
          if os.path.isfile(args.class_names):
              # try to open it to read class names
              with open(args.class_names, 'r') as f:
                  class_names = [l.strip() for l in f.readlines()]
          else:
              class_names = [c.strip() for c in args.class_names.split(',')]
          assert len(class_names) == num_class, str(len(class_names))
          for name in class_names:
              assert len(name) > 0
      else:
          class_names = None
      return class_names
docs: parse # classes and class_names if applicable