parameters: (args)
return_statement: return class_names
docstring: parse # classes and class_names if applicable
docstring_summary: parse # classes and class_names if applicable
docstring_tokens: parse # classes and class_names if applicable
function: def parse_class_names(args):
      """ parse # classes and class_names if applicable """
      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
function_tokens: 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