parameters: (all_ops)
return_statement: return os.path.split(os.path.commonprefix(list(files)))[0]
docstring: Determines the common prefix from the paths of the stacktrace of 'all_ops'.
  
    For example, if the paths are '/foo/bar/baz/' and '/foo/car', this would
    return '/foo'.
  
    Args:
      all_ops: All the input nodes in the form of a list of lists of ops.
  
    Returns:
      The common prefix.
docstring_summary: Determines the common prefix from the paths of the stacktrace of 'all_ops'.
docstring_tokens: Determines the common prefix from the paths of the stacktrace of all_ops .
function: def traceback_files_common_prefix(all_ops):
    """Determines the common prefix from the paths of the stacktrace of 'all_ops'.
  
    For example, if the paths are '/foo/bar/baz/' and '/foo/car', this would
    return '/foo'.
  
    Args:
      all_ops: All the input nodes in the form of a list of lists of ops.
  
    Returns:
      The common prefix.
    """
    files = set()
    for ops in all_ops:
      if ops is None:
        continue
      for op in ops:
        for frame in op.traceback:
          filename = frame[tf_stack.TB_FILENAME]
          if "<embedded" not in filename:
            files.add(filename)
    return os.path.split(os.path.commonprefix(list(files)))[0]
function_tokens: def traceback_files_common_prefix ( all_ops ) : files = set ( ) for ops in all_ops : if ops is None : continue for op in ops : for frame in op . traceback : filename = frame [ tf_stack . TB_FILENAME ] if "<embedded" not in filename : files . add ( filename ) return os . path . split ( os . path . commonprefix ( list ( files ) ) ) [ 0 ]