parameters: (meta1, meta2)
return_statement: return same_gps and same_time
docstring: True if shots taken at the same time on a rig.
docstring_summary: True if shots taken at the same time on a rig.
docstring_tokens: True if shots taken at the same time on a rig .
function: def same_rig_shot(meta1, meta2):
      """True if shots taken at the same time on a rig."""
      have_gps = (
          "gps" in meta1
          and "gps" in meta2
          and "latitude" in meta1["gps"]
          and "latitude" in meta2["gps"]
      )
      same_gps = (
          have_gps
          and meta1["gps"]["latitude"] == meta2["gps"]["latitude"]
          and meta1["gps"]["longitude"] == meta2["gps"]["longitude"]
      )
      same_time = meta1["capture_time"] == meta2["capture_time"]
      return same_gps and same_time
function_tokens: def same_rig_shot ( meta1 , meta2 ) : have_gps = ( "gps" in meta1 and "gps" in meta2 and "latitude" in meta1 [ "gps" ] and "latitude" in meta2 [ "gps" ] ) same_gps = ( have_gps and meta1 [ "gps" ] [ "latitude" ] == meta2 [ "gps" ] [ "latitude" ] and meta1 [ "gps" ] [ "longitude" ] == meta2 [ "gps" ] [ "longitude" ] ) same_time = meta1 [ "capture_time" ] == meta2 [ "capture_time" ] return same_gps and same_time