code: def lock(fd):
      fcntl.flock(fd, fcntl.LOCK_EX)
  
file_path: tensorflow-upstream/tensorflow/tools/test/upload_test_benchmarks.py
imports: import argparse
  import datetime
  import fcntl
  import json
  import os
  import shutil
  from google.cloud import datastore
label_desc: Use image node_id 4 for calling a global function with example usage: lock(fd) without return types