code: def check_nfs(nfs_super_magic=0x6969):
      try:
          # See statfs(2).
          libc = ctypes.CDLL("libc.so.6")
          Statfs = ctypes.c_uint * 32
          buf = Statfs()
          ret = libc.statfs(".", buf)
          if ret != 0:
              return
          if buf[0] != nfs_super_magic:
              raise RuntimeError(
                  "Must run from NFS directory, but cwd (%s) isn't (0x%x)"
                  % (os.getcwd(), buf[0]),
              )
      except OSError:
          pass
  
file_path: moolib/py/moolib/examples/sbatch_experiment.py
imports: import argparse
  import ctypes
  import getpass
  import os
  import socket
  import sys
  import coolname
  import moolib
label_desc: Use image node_id 2 for calling a global function with example usage: check_nfs(nfs_super_magic) without return types