def can_eliminate_repository_dependency(metadata_dict, tool_shed_url, name, owner):
 rd_dict = metadata_dict.get('repository_dependencies', {})
 rd_tups = rd_dict.get('repository_dependencies', [])
 for rd_tup in rd_tups:
  (tsu, n, o, none1, none2, none3) = common_util.parse_repository_dependency_tuple(rd_tup)
  if ((tsu == tool_shed_url) and (n == name) and (o == owner)):
   return False
 return True

def can_eliminate_repository_dependency ( metadata_dict , tool_shed_url , name , owner ) : rd_dict = metadata_dict . get ( 'repository_dependencies' , { } ) rd_tups = rd_dict . get ( 'repository_dependencies' , [ ] ) for rd_tup in rd_tups : ( tsu , n , o , none1 , none2 , none3 ) = common_util . parse_repository_dependency_tuple ( rd_tup ) if ( ( tsu == tool_shed_url ) and ( n == name ) and ( o == owner ) ) : return False return True
determine if the relationship between a repository_dependency record associated with a tool_shed_repository record on the galaxy side can be eliminated .