code: def force_rerun(flag, outfile):
      
      # If flag is True, always run
      if flag:
          return True
      # If flag is False but file doesn't exist, also run
      elif not flag and not op.exists(outfile):
          return True
      # If flag is False but filesize of output is 0, also run
      elif not flag and not is_non_zero_file(outfile):
          return True
      # Otherwise, do not run
      else:
          return False
docs: Check if we should force rerunning of a command if an output file exists.
  
      Args:
          flag (bool): Flag to force rerun.
          outfile (str): Path to output file which may already exist.
  
      Returns:
          bool: If we should force rerunning of a command
  
      Examples:
          >>> force_rerun(flag=True, outfile='/not/existing/file.txt')
          True
  
          >>> force_rerun(flag=False, outfile='/not/existing/file.txt')
          True
  
          >>> force_rerun(flag=True, outfile='./utils.py')
          True
  
          >>> force_rerun(flag=False, outfile='./utils.py')
          False