code: def file_loc():
      
      import sys
      import inspect
      try:
          raise Exception
      except:
          file_ = '.../' + '/'.join((inspect.currentframe().f_code.co_filename.split('/'))[-3:])
          line_ = sys.exc_info()[2].tb_frame.f_back.f_lineno
          return "{}:{}".format(file_, line_)
docs: Return file and line number