code: def load_grid(fname):
      r"""Load a grid file for architecture search"""
      with open(fname, "r") as f:
          rows = f.readlines()
          outs = []
          out = []
          for row in rows:
              if "#" in row:
                  continue
              row = row.split()
              if len(row) > 0:
                  row = row[:2] + ["".join(row[2:])]
                  assert len(row) == 3, "File cannot be parsed"
                  out.append(row)
              else:
                  if len(out) > 0:
                      outs.append(out)
                  out = []
          if len(out) > 0:
              outs.append(out)
      return outs
  
imports: import argparse
  import copy
  import csv
  import os
  import os.path
  import random
  import numpy
  import yaml
  import graphgym.contrib
  from graphgym.utils.comp_budget import match_baseline_cfg
  from graphgym.utils.io import makedirs_rm_exist, string_to_python
label_desc: Use image node_id 7 for calling a global function with example usage: load_grid(fname) and returns: outs