parameters: (ops, scope)
return_statement: return filter_ops_from_regex(ops, "^{}(/.*)?$".format(scope))
docstring: Get all the operations under the given scope path.
  
    Args:
      ops: an object convertible to a list of tf.Operation.
      scope: a scope path.
    Returns:
      A list of tf.Operation.
    Raises:
      TypeError: if ops cannot be converted to a list of tf.Operation.
docstring_summary: Get all the operations under the given scope path.
docstring_tokens: Get all the operations under the given scope path .
function: def get_name_scope_ops(ops, scope):
    """Get all the operations under the given scope path.
  
    Args:
      ops: an object convertible to a list of tf.Operation.
      scope: a scope path.
    Returns:
      A list of tf.Operation.
    Raises:
      TypeError: if ops cannot be converted to a list of tf.Operation.
    """
    if scope and scope[-1] == "/":
      scope = scope[:-1]
    return filter_ops_from_regex(ops, "^{}(/.*)?$".format(scope))
function_tokens: def get_name_scope_ops ( ops , scope ) : if scope and scope [ - 1 ] == "/" : scope = scope [ : - 1 ] return filter_ops_from_regex ( ops , "^{}(/.*)?$" . format ( scope ) )