code: def read_graph_file(file_name):
      type_dict = dict(
          image_number="i4",
          v1="i4",
          v2="i4",
          length="i4",
          total_intensity="f8",
          i="i4",
          j="i4",
          vertex_number="i4",
          labels="i4",
          kind="S1",
      )
  
      path = os.path.join(temp_dir, file_name)
      fd = open(path, "r")
      fields = fd.readline().strip().split(",")
      dt = numpy.dtype(
          dict(names=fields, formats=[type_dict[x] for x in fields])
      )
      pos = fd.tell()
      if len(fd.readline()) == 0:
          return numpy.recarray(0, dt)
      fd.seek(pos)
      return numpy.loadtxt(fd, dt, delimiter=",")
  
imports: import os
  import tempfile
  import traceback
  import numpy
  import six.moves
  import cellprofiler_core.image
  import cellprofiler_core.measurement
  from cellprofiler_core.constants.measurement import GROUP_NUMBER, GROUP_INDEX, COLTYPE_FLOAT, COLTYPE_INTEGER
  import cellprofiler.modules.measureobjectskeleton
  import cellprofiler_core.object
  import cellprofiler_core.pipeline
  import cellprofiler_core.preferences
  import cellprofiler_core.setting
  import cellprofiler_core.workspace
  import tests.frontend.modules
label_desc: Use image node_id 12 for calling a global function with example usage: read_graph_file(file_name) and returns: numpy, numpy